Class: Cloudtasker::UniqueJob::ConflictStrategy::Raise
- Inherits:
-
BaseStrategy
- Object
- BaseStrategy
- Cloudtasker::UniqueJob::ConflictStrategy::Raise
- 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
Instance Method Summary collapse
-
#on_execute ⇒ Object
Raise a Cloudtasker::UniqueJob::LockError.
-
#on_schedule ⇒ Object
Raise a Cloudtasker::UniqueJob::LockError.
Methods inherited from BaseStrategy
Constructor Details
This class inherits a constructor from Cloudtasker::UniqueJob::ConflictStrategy::BaseStrategy
Instance Method Details
#on_execute ⇒ Object
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_schedule ⇒ Object
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 |