Hi Everyone; I’m getting an exception when automat...
# ask-community
m
Hi Everyone; I’m getting an exception when automatically running a pipeline: How would I resolve this?
d
Hi Mehdi - is it possible to post your pipeline code?
m
Hi daniel, here is the gist of it.
d
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
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
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").
👍 1
m
I’ll give it a try, Thank you @daniel.
d