Giter Club home page Giter Club logo

Comments (6)

runabol avatar runabol commented on June 16, 2024

You should be able to terminate workers mid-processing. RabbitMQ will automatically re-queue the tasks and redistribute them to whatever workers are left online.

from tork.

ppcololo avatar ppcololo commented on June 16, 2024

I know, but let's image that in one task I have some x200 sub tasks - like downloading\uploading something and I dont want to terminate this. I just want to let those tasks finish and the rest become onhold

from tork.

runabol avatar runabol commented on June 16, 2024

They will finish. It's not going to restart the parent task. Each of the subtasks will get auto requeued. Those that finish will not be impacted.

from tork.

ppcololo avatar ppcololo commented on June 16, 2024

Ok, let me rephrase:
I want to download 1m urls > I split this job to 1000 parallel tasks > and inside each task I have 1k urls
I have 100 workers. During the run of each task I have finished, lets image, 500 tasks in this Job. If I stop this Job all tasks will be marked as Canceled and if I Restart this Job - Tork will run all tasks that already Completed - 500 tasks already completed and I don't want to re-run them.
So thats why I dont want to re-run completed tasks inside Job with parallel tasks.

from tork.

runabol avatar runabol commented on June 16, 2024

Simply don't stop/cancel the job. Let it run. Terminate whatever machines you like, any tasks on these machines will be requeued to be handled by other workers.

from tork.

runabol avatar runabol commented on June 16, 2024

So long as RabbitMQ stays online you should be fine with doing whatever you want with the workers and even the coordinator

from tork.

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.