Module: HireFire::Backend::Resque::Redis
- Defined in:
- lib/hirefire/backend/resque/redis.rb
Instance Method Summary collapse
-
#jobs ⇒ Fixnum
Counts the amount of queued jobs in the database, failed jobs and jobs scheduled for the future are excluded.
Instance Method Details
#jobs ⇒ Fixnum
Counts the amount of queued jobs in the database, failed jobs and jobs scheduled for the future are excluded
13 14 15 |
# File 'lib/hirefire/backend/resque/redis.rb', line 13 def jobs ::Resque.info[:pending].to_i + ::Resque.info[:working].to_i end |