Exception: Wurk::Job::TimedOut

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/wurk/job.rb

Overview

Raised into the thread running perform by Watchdog once the attempt outlives sidekiq_options timeout:. An ordinary error on purpose: the job may rescue it to clean up, and the retry layer books it exactly like any other failure. See Middleware::Timeout.

TimedOut, not Timeout, and the name is load-bearing: include Sidekiq::Job puts this module into the worker's ancestry, and a constant named Timeout here would resolve ahead of the top-level one — silently breaking every Timeout.timeout(...) written inside a perform.