Hi Everyone;
I’m getting an exception when automatically running a pipeline:
How would I resolve this?
d
daniel
04/29/2021, 3:51 PM
Hi Mehdi - is it possible to post your pipeline code?
m
Mehdi Nazari
04/29/2021, 3:54 PM
Hi daniel, here is the gist of it.
d
daniel
04/29/2021, 3:56 PM
Got it - and when you are launching the run, are you supplying a mode? It looks like you're supposed to supply either "dev" or "prod".
My guess based on the information we have so far is that a mode isn't getting supplied, and we're not surfacing a clear error message (and instead looking for a mode called 'default' and throwing an exception when it isn't there). If that's right we should improve the error experience here.
m
Mehdi Nazari
04/29/2021, 4:02 PM
The run is being triggered by a Schedule defined a few lines above the code. Do I have to provide the “mode” in the schedule?
looks like this:
d
daniel
04/29/2021, 4:07 PM
yeah, add mode="dev" or mode="prod" to the decorator and i'd expect this to work. Will file an issue to improve the experience here, it should fail at definition time if it references a mode that doesn't exist (in this case, "default").