ContinueAsNewOptions
in package
Tags
Table of Contents
Properties
- $taskQueue : string
- TaskQueue that the child workflow needs to be scheduled on.
- $workflowRunTimeout : DateInterval
- The timeout for a single run of the child workflow execution. Each retry or continue as new should obey this timeout.
- $workflowTaskTimeout : DateInterval
- The workflow task timeout for the child workflow.
Methods
- __construct() : mixed
- new() : static
- withTaskQueue() : $this
- Task queue to use for workflow tasks.
- withWorkflowRunTimeout() : $this
- The time after which workflow run is automatically terminated by the Temporal service. Do not rely on the run timeout for business level timeouts. It is preferred to use in workflow timers for this purpose.
- withWorkflowTaskTimeout() : $this
- Maximum execution time of a single workflow task. Default is 10 seconds.
Properties
$taskQueue
TaskQueue that the child workflow needs to be scheduled on.
public
string
$taskQueue
= \Temporal\Worker\WorkerFactoryInterface::DEFAULT_TASK_QUEUE
Optional: the parent workflow task queue will be used if this is not provided.
$workflowRunTimeout
The timeout for a single run of the child workflow execution. Each retry or continue as new should obey this timeout.
public
DateInterval
$workflowRunTimeout
$workflowTaskTimeout
The workflow task timeout for the child workflow.
public
DateInterval
$workflowTaskTimeout
Optional: default is no limit
Methods
__construct()
public
__construct() : mixed
Tags
new()
public
static new() : static
Return values
staticwithTaskQueue()
Task queue to use for workflow tasks.
public
withTaskQueue(string $taskQueue) : $this
It should match a task queue specified when creating a Worker that hosts the workflow code.
Parameters
- $taskQueue : string
Tags
Return values
$thiswithWorkflowRunTimeout()
The time after which workflow run is automatically terminated by the Temporal service. Do not rely on the run timeout for business level timeouts. It is preferred to use in workflow timers for this purpose.
public
withWorkflowRunTimeout(DateIntervalValue $timeout) : $this
Parameters
- $timeout : DateIntervalValue
Tags
Return values
$thiswithWorkflowTaskTimeout()
Maximum execution time of a single workflow task. Default is 10 seconds.
public
withWorkflowTaskTimeout(DateIntervalValue $timeout) : $this
Maximum accepted value is 60 seconds.
Parameters
- $timeout : DateIntervalValue