Exception: Hatchet::IdempotencyCollisionError
- Defined in:
- lib/hatchet/exceptions.rb
Overview
Raised when an idempotency key collision occurs. Contains the ID of the existing run that claimed the key.
Instance Attribute Summary collapse
-
#existing_run_external_id ⇒ String
readonly
The external ID of the existing workflow run.
Instance Method Summary collapse
-
#initialize(existing_run_external_id) ⇒ IdempotencyCollisionError
constructor
A new instance of IdempotencyCollisionError.
Constructor Details
#initialize(existing_run_external_id) ⇒ IdempotencyCollisionError
Returns a new instance of IdempotencyCollisionError.
33 34 35 36 |
# File 'lib/hatchet/exceptions.rb', line 33 def initialize(existing_run_external_id) @existing_run_external_id = existing_run_external_id super("idempotency key collision: existing run #{existing_run_external_id} already exists") end |
Instance Attribute Details
#existing_run_external_id ⇒ String (readonly)
Returns The external ID of the existing workflow run.
31 32 33 |
# File 'lib/hatchet/exceptions.rb', line 31 def existing_run_external_id @existing_run_external_id end |