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](https://cdn.answeroverflow.com/1319319426314535042/Screenshot_2024-12-19_at_10.01.07_AM.png)
![No description](https://cdn.answeroverflow.com/1319319426922975302/Screenshot_2024-12-19_at_10.03.08_AM.png)
7 Replies
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](https://cdn.answeroverflow.com/1319322837408022590/Capture_decran_2024-12-19_a_16.16.00.png)
![No description](https://cdn.answeroverflow.com/1319322837818937354/Capture_decran_2024-12-19_a_16.16.43.png)
The instance is self-hosted EE on aws. and the version we have currently is EE v1.423.0-1-gde00944f0
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.
I just created this today... first time creating a schedule for a windmill script or flow
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
I just pasted exactly that and it's giving "Invalid cron syntax"
![No description](https://cdn.answeroverflow.com/1319330426719830057/Screenshot_2024-12-19_at_10.48.02_AM.png)
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