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

Add support for one-off jobs in Docker Swarm #2829

Closed
pklejch opened this issue Apr 26, 2021 · 7 comments · Fixed by #3016
Closed

Add support for one-off jobs in Docker Swarm #2829

pklejch opened this issue Apr 26, 2021 · 7 comments · Fixed by #3016

Comments

@pklejch
Copy link

pklejch commented Apr 26, 2021

Docker Engine 20.10 introduced option to run one-off jobs in Docker Swarm (https://docs.docker.com/engine/release-notes/#version-2010), this is achieved by two new modes for Swarm service: replicated-job and global-job.

It would be nice to have this possibility when creating Swarm service in docker-py.

Related PR which brought support for those new modes into Docker CLI: docker/cli#2262

@feliperuhland
Copy link
Contributor

Hi @pklejch

Do you think you can open a pull request for that?

Have a nice day :)

@pklejch
Copy link
Author

pklejch commented May 6, 2021

Hi,
sure, I could look into it, but I don't know when I am going to have enough time ;)

@ieugen
Copy link

ieugen commented May 20, 2021

This is also useful for ansible module ansible-collections/community.docker#28 .
Added link for better tracking.

@disastrous-charly
Copy link

Hi,

Any update on this? Any PR has been made or could I help?
It would be useful.

@pklejch
Copy link
Author

pklejch commented Aug 19, 2021

Hi,

I have partial, working but ugly prototype which kinda does what I needed to do. But I haven't able give it enough time to make it pretty for PR. Now with summer holidays and due to the fact that everything is opening again (because of coronavirus) I don't have that much time.

It would be nice, if someone could do it the right way.

kinday added a commit to kinday/docker-py that referenced this issue Feb 2, 2022
@frapell
Copy link

frapell commented Apr 1, 2022

Hello, any progress on this? is that fix from @kinday good enough for submitting a PR ?

kinday added a commit to kinday/docker-py that referenced this issue Jul 28, 2022
@kinday
Copy link
Contributor

kinday commented Jul 28, 2022

My preparation PR got merged (kudos to @milas) so I’ll open PR with the fix for this issue soon.

kinday added a commit to kinday/docker-py that referenced this issue Aug 11, 2022
milas pushed a commit that referenced this issue Aug 11, 2022
Add `global-job` and `replicated-job` modes

Fixes #2829.

Signed-off-by: Leonard Kinday <[email protected]>
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

Successfully merging a pull request may close this issue.

6 participants