Temporal Docs PHP SDK API Version 2.20 (latest release) Release notes

Documentation

PendingActivityInfo
in package

FinalYes

DTO that contains information about a pending activity of a Workflow Execution.

Tags
see
PendingActivityInfo
psalm-immutable
Attributes
#[Immutable]

Table of Contents

Properties

$activityId  : string
$activityOptions  : PendingActivityOptions|null
Current activity options. May be different from the ones used to start the activity.
$activityType  : ActivityType
$attempt  : int
$currentRetryInterval  : DateInterval|null
The time activity will wait until the next retry.
$expirationTime  : DateTimeInterface|null
$heartbeatDetails  : ValuesInterface
$lastAttemptCompleteTime  : DateTimeInterface|null
The time when the last activity attempt was completed. Null if the activity has not been completed yet.
$lastDeploymentVersion  : WorkerDeploymentVersion|null
The Worker Deployment Version this activity was dispatched to most recently.
$lastFailure  : TemporalFailure|null
The failure of the last activity attempt. Null if the activity has not failed yet.
$lastHeartbeatTime  : DateTimeInterface|null
$lastStartedTime  : DateTimeInterface|null
$lastWorkerIdentity  : string
$maximumAttempts  : int
$nextAttemptScheduleTime  : DateTimeInterface|null
Next time when the activity will be scheduled.
$paused  : bool
Indicates if the activity is paused.
$pauseInfo  : PendingActivityPauseInfo|null
Information about why and when the activity was paused. Null if the activity is not paused.
$priority  : Priority|null
Priority metadata.
$scheduledTime  : DateTimeInterface|null
$state  : PendingActivityState

Properties

$currentRetryInterval read-only

The time activity will wait until the next retry.

public DateInterval|null $currentRetryInterval

If the activity is currently running it will be the next retry interval if the activity failed. If the activity is currently waiting it will be the current retry interval. If there will be no retry it will be null.

$lastAttemptCompleteTime read-only

The time when the last activity attempt was completed. Null if the activity has not been completed yet.

public DateTimeInterface|null $lastAttemptCompleteTime

$lastDeploymentVersion read-only

The Worker Deployment Version this activity was dispatched to most recently.

public WorkerDeploymentVersion|null $lastDeploymentVersion

Null if the activity has not yet been dispatched or was last dispatched to an unversioned worker.

$nextAttemptScheduleTime read-only

Next time when the activity will be scheduled.

public DateTimeInterface|null $nextAttemptScheduleTime

If the activity is currently scheduled or started it will be null.

On this page

Search results