Exception: Hatchet::NonDeterminismError

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

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.

Parameters:

  • message (String)
  • task_external_id: (String, nil) (defaults to: nil)
  • invocation_count: (Integer, nil) (defaults to: nil)
  • node_id: (Integer, nil) (defaults to: nil)


82
83
84
85
86
87
# File 'lib/hatchet/exceptions.rb', line 82

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)


78
79
80
# File 'lib/hatchet/exceptions.rb', line 78

def invocation_count
  @invocation_count
end

#node_idInteger? (readonly)

Returns:

  • (Integer, nil)


80
81
82
# File 'lib/hatchet/exceptions.rb', line 80

def node_id
  @node_id
end

#task_external_idString? (readonly)

Returns:

  • (String, nil)


76
77
78
# File 'lib/hatchet/exceptions.rb', line 76

def task_external_id
  @task_external_id
end