GithubHelp home page GithubHelp logo

Comments (3)

bkeepers avatar bkeepers commented on September 2, 2024

HireFire is basically an autoscaler for web and worker dynos on Heroku.

Yeah, I love HireFire. I've been wanting to make it work with speakerdeck.com.

The scenario is as follows; When you pop a job from the queue in for example Redis, and immediately call Qu.backend.length, will it return 0 or 1?

0.

And if it returns 0 could that mean the worker is still actually processing the job or has the worker definitely finished processing the job?

It could still be processing the job.

Also, does this result differ from the Mongo backend?

Nope, all qu backends should operate identically.

Resque provides a method to return all the workers that are currently "working", and they contain the job object and their data (such as the name of the queue the job was pushed in to).

Workers are busy if they have the working_on attribute set.

total_workers_working = Qu.backend.workers.select { |w| w.working_on }.size

Unfortunately, it doesn't store the job data, so you don't know which queue those workers are working on. I don't have a good reason why, so I would be in favor of having Worker#working_on return all the meta-data about a job.

from qu.

jnunemaker avatar jnunemaker commented on September 2, 2024

Is this still valid? Let me know if there is still work to do or if we can close this.

from qu.

mrrooijen avatar mrrooijen commented on September 2, 2024

It's been resolved. I'll close it. :)

from qu.

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.