Class: Delayed::WorkerTimeout
- Inherits:
-
Timeout::Error
- Object
- Timeout::Error
- Delayed::WorkerTimeout
- Defined in:
- lib/delayed/exceptions.rb
Instance Method Summary collapse
Instance Method Details
#message ⇒ Object
5 6 7 8 |
# File 'lib/delayed/exceptions.rb', line 5 def seconds = Delayed::Worker.max_run_time.to_i "#{super} (Delayed::Worker.max_run_time is only #{seconds} second#{seconds == 1 ? '' : 's'})" end |