Exception: Temporalio::Workflow::ContinueAsNewError

Inherits:
Error
  • Object
show all
Defined in:
lib/temporalio/workflow.rb

Overview

Error that is raised by a workflow out of the primary workflow method to issue a continue-as-new.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Error

canceled?

Constructor Details

#initialize(*args, workflow: nil, task_queue: nil, run_timeout: nil, task_timeout: nil, retry_policy: nil, memo: nil, search_attributes: nil, arg_hints: nil, headers: {}) ⇒ ContinueAsNewError

Create a continue as new error.



639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
# File 'lib/temporalio/workflow.rb', line 639

def initialize(
  *args,
  workflow: nil,
  task_queue: nil,
  run_timeout: nil,
  task_timeout: nil,
  retry_policy: nil,
  memo: nil,
  search_attributes: nil,
  arg_hints: nil,
  headers: {}
)
  super('Continue as new')
  @args = args
  @workflow = workflow
  @task_queue = task_queue
  @run_timeout = run_timeout
  @task_timeout = task_timeout
  @retry_policy = retry_policy
  @memo = memo
  @search_attributes = search_attributes
  @arg_hints = arg_hints
  @headers = headers
  Workflow._current.initialize_continue_as_new_error(self)
end

Instance Attribute Details

#arg_hintsObject

Returns the value of attribute arg_hints.



615
616
617
# File 'lib/temporalio/workflow.rb', line 615

def arg_hints
  @arg_hints
end

#argsObject

Returns the value of attribute args.



615
616
617
# File 'lib/temporalio/workflow.rb', line 615

def args
  @args
end

#headersObject

Returns the value of attribute headers.



615
616
617
# File 'lib/temporalio/workflow.rb', line 615

def headers
  @headers
end

#memoObject

Returns the value of attribute memo.



615
616
617
# File 'lib/temporalio/workflow.rb', line 615

def memo
  @memo
end

#retry_policyObject

Returns the value of attribute retry_policy.



615
616
617
# File 'lib/temporalio/workflow.rb', line 615

def retry_policy
  @retry_policy
end

#run_timeoutObject

Returns the value of attribute run_timeout.



615
616
617
# File 'lib/temporalio/workflow.rb', line 615

def run_timeout
  @run_timeout
end

#search_attributesObject

Returns the value of attribute search_attributes.



615
616
617
# File 'lib/temporalio/workflow.rb', line 615

def search_attributes
  @search_attributes
end

#task_queueObject

Returns the value of attribute task_queue.



615
616
617
# File 'lib/temporalio/workflow.rb', line 615

def task_queue
  @task_queue
end

#task_timeoutObject

Returns the value of attribute task_timeout.



615
616
617
# File 'lib/temporalio/workflow.rb', line 615

def task_timeout
  @task_timeout
end

#workflowObject

Returns the value of attribute workflow.



615
616
617
# File 'lib/temporalio/workflow.rb', line 615

def workflow
  @workflow
end