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

Support running multiple, isolated instances of swarm-cronjob within a single Docker Swarm cluster #280

Open
kgilden opened this issue Sep 4, 2023 · 0 comments

Comments

@kgilden
Copy link

kgilden commented Sep 4, 2023

Description

It seems that swarm-cronjob executes jobs found from any stack running within the same Docker Swarm cluster. Would it be possible to somehow limit swarm-cronjob to only read in cronjobs from only the same stack in which it is deployed?

We use Docker Swarm to host multiple versions of our application within the same cluster for development. We're observing that each swarm-cronjob instance executes cronjobs of all stacks. So if for example there are 5 version of our app running, then each cronjob is run 5 times. We want to keep running multiple instances of swarm-cronjob so that the dev environments would be as close as our production environment.

@kgilden kgilden changed the title Support limiting Support running multiple, isolated instances of swarm-cronjob within a Docker Swarm cluster Sep 4, 2023
@kgilden kgilden changed the title Support running multiple, isolated instances of swarm-cronjob within a Docker Swarm cluster Support running multiple, isolated instances of swarm-cronjob within a single Docker Swarm cluster Sep 4, 2023
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