https://prefect.io logo
d

Dolor Oculus

11/20/2020, 10:00 PM
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

nicholas

11/20/2020, 10:09 PM
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

Dolor Oculus

11/20/2020, 10:09 PM
eek! thank you 🙂
n

nicholas

11/20/2020, 10:09 PM
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

Dolor Oculus

11/20/2020, 10:10 PM
yeah even better
n

nicholas

11/20/2020, 10:10 PM
If you're using the UI, you can modify your schedules directly there on this page:
d

Dolor Oculus

11/20/2020, 10:12 PM
nice.
I love crontab guru for checking the string. https://crontab.guru/#0_7_*_*_2-6
n

nicholas

11/20/2020, 10:13 PM
that's the app the Prefect UI cron editor used as inspiration! 😄
d

Dolor Oculus

11/20/2020, 10:13 PM
💗
3 Views