Giter Site home page Giter Site logo

Comments (11)

danielgrabowski avatar danielgrabowski commented on May 21, 2024 2

Any news on this issue?

from swarm-cronjob.

crazy-max avatar crazy-max commented on May 21, 2024 1

@danielgrabowski I'm going to start working on it but I'll need to do a large refactoring beforehand. Keep you in touch.

from swarm-cronjob.

moschlar avatar moschlar commented on May 21, 2024 1

@crazy-max @djmaze It seems that compose file syntax support for jobs only recently landed in Docker 23 (moby/moby#41895 (comment))

docker/cli#2907

from swarm-cronjob.

danielgrabowski avatar danielgrabowski commented on May 21, 2024

I have the same problem. If I start a global service on 9 nodes running every 1m I can see that every minute it starts on a different set of nodes (usually 2 or 3 out of 9 more less randomly).

from swarm-cronjob.

crazy-max avatar crazy-max commented on May 21, 2024

Hi guys, I did some tests on my side and it appears that this could be due to the way the tasks on the Swarm side are managed. Maybe linked to a GC issue with task reaper. Any ideas @dperny?

from swarm-cronjob.

djmaze avatar djmaze commented on May 21, 2024

So, in spite of job support finally getting into Docker (yeah!), this project will probably still be useful as long as there is no cron scheduler in Swarm. @crazy-max Do you plan on migrating swarm-cronjob to the new model?

That should then probably fix this issue as well.

from swarm-cronjob.

crazy-max avatar crazy-max commented on May 21, 2024

@djmaze Yes I'm aware of this feature. That looks promising and I think it will benefit for the global mode support (and fix this issue).

from swarm-cronjob.

djmaze avatar djmaze commented on May 21, 2024

Is anyone aware if Docker CE 20.10 will be released in the near future? That will contain the new job support which blocks this issue.

from swarm-cronjob.

mostafa-asg avatar mostafa-asg commented on May 21, 2024

I have the same issue.
Cluster: 1 manager node with 2 worker nodes.
Docker version: 20.10.6
I ran busybox date example in global mode.

date_test.0.p88rnuivp25o@swarm_test1    | Sun May 23 18:48:44 UTC 2021
date_test.0.66loc48rvrgd@swarm_test3    | Sun May 23 18:50:00 UTC 2021
date_test.0.d3j43d50ls90@swarm_test2    | Sun May 23 18:51:00 UTC 2021
date_test.0.49dmp9uvt1mt@swarm_test3    | Sun May 23 18:52:00 UTC 2021
date_test.0.bxnixn2wpetx@swarm_test3    | Sun May 23 18:48:47 UTC 2021
date_test.0.xvocor1a123r@swarm_test3    | Sun May 23 18:51:01 UTC 2021
date_test.0.flw796nt9mmy@swarm_test2    | Sun May 23 18:48:32 UTC 2021
date_test.0.km0tkw07iqww@swarm_test2    | Sun May 23 18:49:00 UTC 2021

swarm_test1 only appeared once.

from swarm-cronjob.

Luis97lol avatar Luis97lol commented on May 21, 2024

Any news on this issue? Mode global only runs on the node that swarm-cronjob is deployed. Other nodes never ran

image

from swarm-cronjob.

Luis97lol avatar Luis97lol commented on May 21, 2024

docker swarm ca --rotate

This command apparently solves the problem

from swarm-cronjob.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.