Eggington
Eggington2mo ago

Croner Day of Week Index Inconsistency

From reading the docs about windmill's usage of hexagon's croner expression parser... it seems clear that the intended functionality is that to schedule a script/flow to run Monday-Friday you use 1-5... However, as you can see in the screenshots I have shared, using 1-5 schedules for Sunday-Thursday, and using 2-6 provides the Monday-Friday schedule.
No description
No description
7 Replies
henri-c
henri-c2mo ago
Hi @Eggington On https://app.windmill.dev/ it works as specified by the docs (see my screenshots) You are using this locally right? Could you specify what version you are using?
No description
No description
Eggington
EggingtonOP2mo ago
The instance is self-hosted EE on aws. and the version we have currently is EE v1.423.0-1-gde00944f0
fjørdlek
fjørdlek2mo ago
Is this a newly created schedule or are you looking at an existing schedule that has been created some time ago (i.e before we introduced the new syntax). In order to not break existing schedules, we did not touch old schedules and if you edit them, there is an option to migrate.
Eggington
EggingtonOP2mo ago
I just created this today... first time creating a schedule for a windmill script or flow
fjørdlek
fjørdlek2mo ago
I'll try to your specific version and reproduce. In the meantime, what does this expression give you (just to make sure it actually uses croner) 0 0 0 ? * 1#1
Eggington
EggingtonOP2mo ago
I just pasted exactly that and it's giving "Invalid cron syntax"
No description
fjørdlek
fjørdlek2mo ago
yes, just confirmed that your version does not yet have croner it was introduced in version v1.430.0 so we recommend you upgrade to the latest version

Did you find this page helpful?