Comments (3)
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 return0
or1
?
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.
Is this still valid? Let me know if there is still work to do or if we can close this.
from qu.
It's been resolved. I'll close it. :)
from qu.
Related Issues (20)
- RabbitMQ vs Bunny HOT 3
- Docs don't match current release version? HOT 3
- jobs processed even when queue is not running HOT 6
- Question: How to handle completed jobs? Any callback? HOT 1
- Auto Redic/Mongo mount while rake spec HOT 1
- Failing test for Mongo backend HOT 1
- db_name must be a string or symbol HOT 6
- Daemonize qu:work HOT 1
- Current status of project HOT 6
- Backend should be notified of failures HOT 1
- Raise error if no queue given to worker HOT 1
- Jobs are currently retried until they succeed
- Worker heartbeat HOT 4
- New gem release? HOT 1
- Move kestrel thrift stuff to its own gem HOT 1
- Release new version HOT 1
- Process payloads in batches HOT 6
- Allow backends to implement batch pop
- Allow backends to implement batch push HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qu.