Hi team - is it possible to schedule a flow with p...
# prefect-community
b
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
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
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
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
@Scott Jung great pick up, works now, thank you very much
Is there an issue somewhere (if not should we raise one) ?
s
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
Would either of you mind opening an issue for this? 🙂
b
Not at all
🙂 1