Sha256: b007109dad074c63bcac5abbb0aed732867c85b8127cafa267bf455f6798408e

Contents?: true

Size: 304 Bytes

Versions: 15

Compression:

Stored size: 304 Bytes

Contents

require 'timeout'

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

  class FatalBackendError < RuntimeError; end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
delayed_job-4.1.13 lib/delayed/exceptions.rb
delayed_job-4.1.12 lib/delayed/exceptions.rb
delayed_job-4.1.12.rc1 lib/delayed/exceptions.rb
delayed_job-4.1.11 lib/delayed/exceptions.rb
delayed_job-4.1.10 lib/delayed/exceptions.rb
delayed_job-4.1.9 lib/delayed/exceptions.rb
delayed_job-4.1.8 lib/delayed/exceptions.rb
delayed_job-4.1.8.beta1 lib/delayed/exceptions.rb
delayed_job-4.1.7 lib/delayed/exceptions.rb
delayed_job-4.1.7.beta1 lib/delayed/exceptions.rb
delayed_job-4.1.6 lib/delayed/exceptions.rb
delayed_job-4.1.6.beta1 lib/delayed/exceptions.rb
delayed_job-4.1.5 lib/delayed/exceptions.rb
delayed_job-4.1.4 lib/delayed/exceptions.rb
delayed_job-4.1.3 lib/delayed/exceptions.rb