Would this be a reasonable way to say "Run this TU...
# ask-community
d
Would this be a reasonable way to say "Run this TUESDAY through SATURDAY"?
Copy code
not_filters=[
            filters.is_day_of_week(1),
            filters.is_day_of_week(7)
        ],
n
I think you would use:
Copy code
not_filters=[
            filters.is_day_of_week(0),
            filters.is_day_of_week(1)
        ],
since the days of the week are 0-indexed and go 0-6
d
eek! thank you 🙂
n
you could also use a cron clock with whatever your schedule is:
Copy code
* * * * 2-6
(you'd need to modify the hours/minutes/days accordingly)
d
yeah even better
n
If you're using the UI, you can modify your schedules directly there on this page:
d
nice.
I love crontab guru for checking the string. https://crontab.guru/#0_7_*_*_2-6
n
that's the app the Prefect UI cron editor used as inspiration! 😄
d
💗