schwarztrinker
schwarztrinker17mo ago

Scheduled Cron Jobs for Flows/Tasks to run every penultimate day of the month

Hi everyone, is there a way for windmill to run a scheduled task every penultimate day of the month? I think the cron logic does not support such a requirenment. Am I right there? Is there a nicer way to do this in a single scheduled object? I appreciate your help! In the Image you can see my current workaround .....
4 Replies
rubenf
rubenf17mo ago
Stack Overflow
CRON job to run on the last day of the month
I need to create a CRON job that will run on the last day of every month. I will create it using cPanel. Any help is appreciated. Thanks
rubenf
rubenf17mo ago
we use this under the hood: https://docs.rs/cron/latest/cron/
cron - Rust
A cron expression parser and schedule explorer
rubenf
rubenf17mo ago
A bit of a hack but you can always do it in the first day of the month in a different timezone
schwarztrinker
schwarztrinker17mo ago
Thank you for that @rubenf . I adjusted my script and I am using a flow for that feature now. My scheduler runs the flow daily and my first python script in the flow checks, if its the penultimate business day in the month 🙂 This fixes my requirement for now. Thank your for your fast support and your AWESOME work ❤️