Hi Community, I am facing issue while scheduling ...
# prefect-community
b
Hi Community, I am facing issue while scheduling prefect flows (v 1.2.2). issue screenshot attached. looking for help. Thanks !
1
👋 1
b
Hello Bhupesh, thank you for reaching out to us! We'll take a look at this for you.
👍 1
And just to clarify, have you been able to set schedules for flows successfully before using this feature? Is this your first time encountering this?
a
@Bhupesh Kemar Singh your cron string is valid, this might be a UI issue can you try doing it via flow code instead for now? we may investigate next week why this doesn't work from the UI given you want CET timezone, you can attach this to your Flow():
Copy code
schedule=CronSchedule(cron="00 20 * * 1,2,3,4", timezone="Europe/Berlin"),
🙌 2
🙏 2
g
Thanks @Anna Geller, @Bianca Hoch Bhupesh and I have been working on this together. We have other flows where we are able to set schedules without issues.
b
Thanks @Anna Geller, @Bianca Hoch. Scheduling worked fine with default parameters but it didn't work when I override default parameter.
1
a
for that, you can set parameters on clocks
Copy code
clock1 = clocks.IntervalClock(start_date=now, 
                              interval=datetime.timedelta(minutes=1), 
                              parameter_defaults={"p": "CLOCK 1"})
schedule = Schedule(clocks=[clock1])
🙏 1
b
Thanks, @Anna Geller. Let me try it