Exception: Hatchet::NonDeterminismError

Inherits:
Error
  • Object
show all
Defined in:
lib/hatchet/exceptions.rb

Overview

Raised by the engine when durable-task execution detects a non-deterministic replay (the workflow did something different compared to the recorded log).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, task_external_id: nil, invocation_count: nil, node_id: nil) ⇒ NonDeterminismError

Returns a new instance of NonDeterminismError.



54
55
56
57
58
59
# File 'lib/hatchet/exceptions.rb', line 54

def initialize(message, task_external_id: nil, invocation_count: nil, node_id: nil)
  @task_external_id = task_external_id
  @invocation_count = invocation_count
  @node_id = node_id
  super(message)
end

Instance Attribute Details

#invocation_countInteger? (readonly)

Returns:

  • (Integer, nil)


50
51
52
# File 'lib/hatchet/exceptions.rb', line 50

def invocation_count
  @invocation_count
end

#node_idInteger? (readonly)

Returns:

  • (Integer, nil)


52
53
54
# File 'lib/hatchet/exceptions.rb', line 52

def node_id
  @node_id
end

#task_external_idString? (readonly)

Returns:

  • (String, nil)


48
49
50
# File 'lib/hatchet/exceptions.rb', line 48

def task_external_id
  @task_external_id
end