Git Product home page Git Product logo

Comments (3)

guewen avatar guewen commented on August 20, 2024 1

My problem occured when I config v-host not correctly and rabbitby doesn't release the process so my job remain 'Started' forever.

So this is unrelated to the job queue, if the rabbitpy lib handles a timeout, it means at some point it will raises a kind of timeout error which will be propagated to the job handler, then either you let it bubble up and the job will be failed, either you catch it and raise a RetryableJobError so the job is retried later. In any case, to me it's a problem with rabbitpy not having a timeout configured. Never used this lib but it seems possible: gmr/rabbitpy#85

from queue.

guewen avatar guewen commented on August 20, 2024

What is doing your job exactly? Example: if your job executes a requests to another server, be sure to set a timeout in your call.
Jobs have no timeout, although you can have more than one workers executing jobs, and you should probably put your heavy job in a dedicated channel, so it won't block the other jobs.

from queue.

nguyenducthuanuet avatar nguyenducthuanuet commented on August 20, 2024

My job sends a message to RabbitMQ Server via rabbitpy library (https://github.com/gmr/rabbitpy). My problem occured when I config v-host not correctly and rabbitby doesn't release the process so my job remain 'Started' forever. Therefore, I think queue should have timeout for each, after timeout job will be 'Failed', because the next job can work with that config. (Now, my next job can't execute because the maximum of concurrent job in my channel is 2 and there are 2 jobs with forever state 'Started' by that problem),

from queue.

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.