Class: Apify::Scheduler::History

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/apify/scheduler/history.rb

Instance Method Summary collapse

Instance Method Details

#currently_working?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'app/models/apify/scheduler/history.rb', line 5

def currently_working?
  Resque.working.map{ |w| w.job['payload']['args'].last }.include? self.id
end