Documentation

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

$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

$workflowNamespace

public string $workflowNamespace = 'default'

Methods

__construct()

ActivityInfo constructor.

public __construct() : mixed

        
On this page

Search results