Exception: Temporalio::Workflow::ContinueAsNewError
- 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
-
#args ⇒ Object
Returns the value of attribute args.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#memo ⇒ Object
Returns the value of attribute memo.
-
#retry_policy ⇒ Object
Returns the value of attribute retry_policy.
-
#run_timeout ⇒ Object
Returns the value of attribute run_timeout.
-
#search_attributes ⇒ Object
Returns the value of attribute search_attributes.
-
#task_queue ⇒ Object
Returns the value of attribute task_queue.
-
#task_timeout ⇒ Object
Returns the value of attribute task_timeout.
-
#workflow ⇒ Object
Returns the value of attribute workflow.
Instance Method Summary collapse
-
#initialize(*args, workflow: nil, task_queue: nil, run_timeout: nil, task_timeout: nil, retry_policy: nil, memo: nil, search_attributes: nil, headers: {}) ⇒ ContinueAsNewError
constructor
Create a continue as new error.
Methods inherited from Error
Constructor Details
#initialize(*args, workflow: nil, task_queue: nil, run_timeout: nil, task_timeout: nil, retry_policy: nil, memo: nil, search_attributes: nil, headers: {}) ⇒ ContinueAsNewError
Create a continue as new error.
532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 |
# File 'lib/temporalio/workflow.rb', line 532 def initialize( *args, workflow: nil, task_queue: nil, run_timeout: nil, task_timeout: nil, retry_policy: nil, memo: nil, search_attributes: 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 @headers = headers Workflow._current.initialize_continue_as_new_error(self) end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
510 511 512 |
# File 'lib/temporalio/workflow.rb', line 510 def args @args end |
#headers ⇒ Object
Returns the value of attribute headers.
510 511 512 |
# File 'lib/temporalio/workflow.rb', line 510 def headers @headers end |
#memo ⇒ Object
Returns the value of attribute memo.
510 511 512 |
# File 'lib/temporalio/workflow.rb', line 510 def memo @memo end |
#retry_policy ⇒ Object
Returns the value of attribute retry_policy.
510 511 512 |
# File 'lib/temporalio/workflow.rb', line 510 def retry_policy @retry_policy end |
#run_timeout ⇒ Object
Returns the value of attribute run_timeout.
510 511 512 |
# File 'lib/temporalio/workflow.rb', line 510 def run_timeout @run_timeout end |
#search_attributes ⇒ Object
Returns the value of attribute search_attributes.
510 511 512 |
# File 'lib/temporalio/workflow.rb', line 510 def search_attributes @search_attributes end |
#task_queue ⇒ Object
Returns the value of attribute task_queue.
510 511 512 |
# File 'lib/temporalio/workflow.rb', line 510 def task_queue @task_queue end |
#task_timeout ⇒ Object
Returns the value of attribute task_timeout.
510 511 512 |
# File 'lib/temporalio/workflow.rb', line 510 def task_timeout @task_timeout end |
#workflow ⇒ Object
Returns the value of attribute workflow.
510 511 512 |
# File 'lib/temporalio/workflow.rb', line 510 def workflow @workflow end |