Hi, is it possible to add a schedule with a defaul...
# prefect-community
m
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
Hi @Matthias - check out the docs on Schedule Filters, I think that'll best fit your use case.
j
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
thanks @Jeremiah, thats exactly what i needed 🙂
j
Ok great. When you want some real interesting stuff like business day schedules the doc @nicholas linked to is the way to go