Class: Cloudtasker::UniqueJob::ConflictStrategy::Raise

Inherits:
BaseStrategy
  • Object
show all
Defined in:
lib/cloudtasker/unique_job/conflict_strategy/raise.rb

Overview

This strategy raises an error on conflict, both on client and server side.

Constant Summary collapse

RESCHEDULE_DELAY =

seconds

5

Instance Attribute Summary

Attributes inherited from BaseStrategy

#job

Instance Method Summary collapse

Methods inherited from BaseStrategy

#initialize

Constructor Details

This class inherits a constructor from Cloudtasker::UniqueJob::ConflictStrategy::BaseStrategy

Instance Method Details

#on_executeObject

Raise a Cloudtasker::UniqueJob::LockError



16
17
18
# File 'lib/cloudtasker/unique_job/conflict_strategy/raise.rb', line 16

def on_execute
  raise_lock_error
end

#on_scheduleObject

Raise a Cloudtasker::UniqueJob::LockError



11
12
13
# File 'lib/cloudtasker/unique_job/conflict_strategy/raise.rb', line 11

def on_schedule
  raise_lock_error
end