Coder Social home page Coder Social logo

Multiple worker about fivebeans HOT 3 OPEN

ceejbot avatar ceejbot commented on July 21, 2024
Multiple worker

from fivebeans.

Comments (3)

danielnielsen avatar danielnielsen commented on July 21, 2024

Are you using the reserve function when picking up a job?

from fivebeans.

DarkSorrow avatar DarkSorrow commented on July 21, 2024

I just started two runner with different client_id and when i tried to write the event "job.reserved" it both were reserving the same id job at about the same time. So i suppose that the runner itself do make a reserver before calling right?

Thats what i use in two different files, its really basic:

var runner = new FiveBeans.runner('SpoolerWorkerDefault', 'spooler_worker.yml');
runner.go();

var runner = new FiveBeans.runner('SpoolerWorkerSecond', 'spooler_worker.yml');
runner.go();

from fivebeans.

sirhanshafahath avatar sirhanshafahath commented on July 21, 2024

Hello,

I am also facing this issue. Its because of the TTL of the job.

We should keep 'touch'ing the job in the handler's work function until the job is completed. Otherwise after reserving the job, it will be released back into the queue by beanstalkd server, if the job is not completed in the specified TTL in the put command.

Once its released, it will be reserved by the second worker.

from fivebeans.

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.