https://prefect.io logo
Title
f

Fredrik Hilding

10/20/2021, 11:59 AM
Hi! The UI doesn't seem to agree with CRON (or me, or the code-based schedules). I've managed to create a task with a schedule
*/5 * * */2 *
which the UI correctly parses as
Every 5 minutes, every 2 months
. However, I can't set that schedule in the UI, is that by design or an unintentional discrepancy between the two? The same input under Settings -> Schedule -> Advanced -> Cron just tells me "Invalid Input" :(
a

Anna Geller

10/20/2021, 12:15 PM
@Fredrik Hilding what is the intention behind this schedule? Do you want to run your flow every 5 minutes every hour every day in February, but in March you want no flow runs, and then in April again every 5 minutes every single day?
f

Fredrik Hilding

10/20/2021, 12:17 PM
actually, it was only the */5 or */10 etc on the minutes I was after, i.e. running something at 00, 05, 10, 15 of every hour. The Month stuff was just to see if it accepted it everywhere too, I can't come up with any reasonable excuse for that one 🙂
a

Anna Geller

10/20/2021, 12:17 PM
Then you need just */5 * * * *
f

Fredrik Hilding

10/20/2021, 12:18 PM
I think so too, but the UI does not
But it can correctly interpret it when I've set it via Python
a

Anna Geller

10/20/2021, 12:21 PM
thanks for reporting that! I will open an issue so that UI folks can have a look at it. In the meantime, if you need to set this schedule via UI, you could do:
🙌 1
@Marvin open “Setting interval schedule via Cron doesn’t work from the UI” in UI
f

Fredrik Hilding

10/20/2021, 12:22 PM
Thanks @Anna Geller
a

Anna Geller

10/20/2021, 12:28 PM
@Marvin open “Setting interval schedule via Cron doesn’t work from the UI”
j

Jenny

10/21/2021, 8:11 PM
Try again - @Marvin open “Setting interval schedule via Cron doesn’t work from the UI"
🤔 1