Class: Delayed::WorkerTimeout

Inherits:
Timeout::Error
  • Object
show all
Defined in:
lib/delayed/exceptions.rb

Instance Method Summary collapse

Instance Method Details

#messageObject


5
6
7
8
# File 'lib/delayed/exceptions.rb', line 5

def message
  seconds = Delayed::Worker.max_run_time.to_i
  "#{super} (Delayed::Worker.max_run_time is only #{seconds} second#{seconds == 1 ? '' : 's'})"
end