Class: Resque::Plugins::DisableJob::Stats
- Inherits:
-
Object
- Object
- Resque::Plugins::DisableJob::Stats
- Defined in:
- lib/resque/plugins/disable_job/stats.rb
Overview
Stats These are methods that inspect the rules
Class Method Summary collapse
Class Method Details
.all_disabled_jobs ⇒ Object
11 12 13 |
# File 'lib/resque/plugins/disable_job/stats.rb', line 11 def self.all_disabled_jobs Job.disabled_jobs.map { |name| job_disabled_rules(name) }.flatten end |
.disabled_stats ⇒ Object
21 22 23 24 25 26 |
# File 'lib/resque/plugins/disable_job/stats.rb', line 21 def self.disabled_stats all_disabled_jobs.map do |rule| rule.count = Resque.redis.get(rule.rule_key).to_i rule end end |