Module: ResqueWeb::WorkingHelper
- Included in:
- OverviewHelper
- Defined in:
- app/helpers/resque_web/working_helper.rb
Instance Method Summary collapse
Instance Method Details
#jobs ⇒ Object
7 8 9 |
# File 'app/helpers/resque_web/working_helper.rb', line 7 def jobs @jobs ||= workers.map(&:job) end |
#sorted_worker_jobs ⇒ Object
15 16 17 |
# File 'app/helpers/resque_web/working_helper.rb', line 15 def sorted_worker_jobs @sorted_worker_jobs ||= worker_jobs.sort_by { |w, j| j['run_at'] || '' } end |
#worker_jobs ⇒ Object
11 12 13 |
# File 'app/helpers/resque_web/working_helper.rb', line 11 def worker_jobs @worker_jobs ||= workers.zip(jobs).reject { |w, j| w.idle? || j['queue'].nil? } end |
#workers ⇒ Object
3 4 5 |
# File 'app/helpers/resque_web/working_helper.rb', line 3 def workers @workers ||= Resque.workers end |