Thread
#prefect-community
    m

    Matthias

    2 years ago
    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.
    nicholas

    nicholas

    2 years ago
    Hi @Matthias - check out the docs on Schedule Filters, I think that'll best fit your use case.
    Jeremiah

    Jeremiah

    2 years ago
    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)
    m

    Matthias

    2 years ago
    thanks @Jeremiah, thats exactly what i needed 🙂
    Jeremiah

    Jeremiah

    2 years ago
    Ok great. When you want some real interesting stuff like business day schedules the doc @nicholas linked to is the way to go