Class: SidekiqUniqueJobs::RunLockTimeoutCalculator

Inherits:
TimeoutCalculator show all
Defined in:
lib/sidekiq_unique_jobs/timeout_calculator.rb

Instance Method Summary collapse

Methods inherited from TimeoutCalculator

for_item, #initialize, #time_until_scheduled, #worker_class, #worker_class_queue_lock_expiration, #worker_class_run_lock_expiration

Constructor Details

This class inherits a constructor from SidekiqUniqueJobs::TimeoutCalculator

Instance Method Details

#secondsObject


46
47
48
49
50
51
# File 'lib/sidekiq_unique_jobs/timeout_calculator.rb', line 46

def seconds
  @seconds ||= (
    worker_class_run_lock_expiration ||
    SidekiqUniqueJobs.config.default_run_lock_expiration
  ).to_i
end