Exception: Hatchet::IdempotencyCollisionError

Inherits:
Error
  • Object
show all
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

Instance Method Summary collapse

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_idString (readonly)

Returns The external ID of the existing workflow run.

Returns:

  • (String)

    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