https://prefect.io logo
m

Matthias

06/08/2020, 10:05 AM
Hi, is it possible to add a schedule with a default inactive state? I would like to set the Schedule automatically to inactive when a specific env variable is True.
n

nicholas

06/08/2020, 1:35 PM
Hi @Matthias - check out the docs on Schedule Filters, I think that'll best fit your use case.
j

Jeremiah

06/08/2020, 1:43 PM
One other thought - if you’re talking about at the time of flow registration, there is a kwarg
set_schedule_active
that defaults to
True
but can be turned off. This only refers to the schedule’s starting setting (you can toggle it anytime)
upvote 1
m

Matthias

06/08/2020, 1:55 PM
thanks @Jeremiah, thats exactly what i needed 🙂
j

Jeremiah

06/08/2020, 2:51 PM
Ok great. When you want some real interesting stuff like business day schedules the doc @nicholas linked to is the way to go