https://prefect.io logo
Title
b

Brad

04/06/2020, 9:12 PM
Hi team - is it possible to schedule a flow with parameters? I’m getting some
Flows with required parameters can not be scheduled automatically
errors when trying to create one with
parameter_defaults
j

josh

04/06/2020, 9:15 PM
Hey @Brad absolutely flows can be scheduled with parameters! Take a look here: https://docs.prefect.io/core/concepts/schedules.html#varying-parameter-values
b

Brad

04/06/2020, 10:00 PM
Hi Josh - yep I found the docs, but I’m getting a
Flows with required parameters can not be scheduled automatically
when trying to pass parameters to the
CronClock
. Is this expected to work?
I can’t see anything about required vs non-required parameters in the docs (but this obviously changes the behaviour)
s

Scott Zelenka

04/06/2020, 10:11 PM
Yeah, it doesn't currently check the parameter_defaults of the clocks before throwing that error. I've gotten around this by specifying defaults on all Parameters, then also the different Parameters in parameter_defaults
b

Brad

04/06/2020, 10:15 PM
@Scott Jung great pick up, works now, thank you very much
Is there an issue somewhere (if not should we raise one) ?
s

Scott Zelenka

04/06/2020, 10:18 PM
I recall there being a Slack conversation, didn't bother creating an issue. At the time, I was more concerned that I couldn't have multiple clocks scheduled for the same time with different parameyer_defaults. IMO, we should have an issue to track an enhancement
j

josh

04/07/2020, 2:05 PM
Would either of you mind opening an issue for this? 🙂
b

Brad

04/07/2020, 10:57 PM
Not at all
🙂 1