ActivityInfo
in package
FinalYes
ActivityInfo contains information about currently executing activity.
Use Activity::getInfo() to access.
Table of Contents
Properties
- $attempt : int
- Attempt starts from 1, and increased by 1 for every retry if retry policy is specified.
- $deadline : DateTimeInterface
- Time of activity timeout
- $heartbeatTimeout : DateInterval
- Maximum time between heartbeats. 0 means no heartbeat needed.
- $id : string
- An ID of the activity. This identifier can be used to complete the activity through `complete` method.
- $scheduledTime : DateTimeInterface
- Time of activity scheduled by a workflow
- $startedTime : DateTimeInterface
- Time of activity start
- $taskQueue : string
- $taskToken : string
- A correlation token that can be used to complete the activity through `complete` method.
- $type : ActivityType
- Type (name) of the activity.
- $workflowExecution : WorkflowExecution|null
- $workflowNamespace : string
- $workflowType : WorkflowType|null
Methods
- __construct() : mixed
- ActivityInfo constructor.
Attributes
#[Immutable]
#[Immutable]
Properties
$attempt
Attempt starts from 1, and increased by 1 for every retry if retry policy is specified.
public
int
$attempt
= 1
$deadline
Time of activity timeout
public
DateTimeInterface
$deadline
$heartbeatTimeout
Maximum time between heartbeats. 0 means no heartbeat needed.
public
DateInterval
$heartbeatTimeout
$id
An ID of the activity. This identifier can be used to complete the activity through `complete` method.
public
string
$id
Tags
$scheduledTime
Time of activity scheduled by a workflow
public
DateTimeInterface
$scheduledTime
$startedTime
Time of activity start
public
DateTimeInterface
$startedTime
$taskQueue
public
string
$taskQueue
= \Temporal\Worker\WorkerFactoryInterface::DEFAULT_TASK_QUEUE
$taskToken
A correlation token that can be used to complete the activity through `complete` method.
public
string
$taskToken
Tags
$type
Type (name) of the activity.
public
ActivityType
$type
$workflowExecution
public
WorkflowExecution|null
$workflowExecution
= null
$workflowNamespace
public
string
$workflowNamespace
= 'default'
$workflowType
public
WorkflowType|null
$workflowType
= null
Methods
__construct()
ActivityInfo constructor.
public
__construct() : mixed