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

Start a job in a time range (H syntax) #9

Open
tsbx opened this issue Jul 24, 2019 · 1 comment
Open

Start a job in a time range (H syntax) #9

tsbx opened this issue Jul 24, 2019 · 1 comment

Comments

@tsbx
Copy link

tsbx commented Jul 24, 2019

Hello,

I would like to start many nearly identical jobs/services once every X minutes, but not at the exact same time (to not overload the swarm workers).

For now, I handle this manually by specifying a different schedule label for each service.
When I have new services, I have to check for potential overlaps, etc.
As you can imagine, this is pretty cumbersome to maintain.

Have you planned to implement something like the H syntax used in Jenkins ?
It would greatly improve this use case.
Cf. :

@crazy-max
Copy link
Owner

crazy-max commented Jul 24, 2019

Hi @tsbx,

I use robfig/cron on swarm-cronjob for cron implementation and there is a (closed) PR on robfig/cron#47 about this. I will resume work on this PR when I've got time so that we can have an implementation on our side.

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

No branches or pull requests

2 participants