Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complex schedule is wrongly executed #358

Open
claas-fridtjof-lisowski opened this issue Dec 4, 2020 · 0 comments
Open

Complex schedule is wrongly executed #358

claas-fridtjof-lisowski opened this issue Dec 4, 2020 · 0 comments

Comments

@claas-fridtjof-lisowski
Copy link

claas-fridtjof-lisowski commented Dec 4, 2020

We have this schedule:

0 10 10,27 * */2,*/3,*/4,*/5

Expected behaviour

Expected trigger schema in words:

“At 10:00 on day-of-month 10 and 27 if it's on every 2nd day-of-week, every 3rd day-of-week, every 4th day-of-week, and every 5th day-of-week.”

From https://crontab.guru/#0_10_10,27__/2,/3,/4,*/5

Actual behaviour

it triggers as soon as the day of week matches.

We use Kubernetes 1.17, which seems to use v1.1.0 for the CronJob controller.

The Kubernetes CronJobs are triggering the jobs as described in the expected behaviour: 2x month only on a weekday and not on a Monday and only on day 10 and 27 of the month is the cron triggered.

In Argo v2.11.7 robfig/cron/v3 is used.

Here though the "actual behaviour" is observed and the day of month is ignored.

Is that v3 behaviour the "correct" one or is this a bug? Or is there an alternative for our schedule?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant