Durable Workflow PHP SDK — API Reference

Guides

ActivityRetryInfo
in package

FinalYes

Immutable attempt identity and retry snapshot received with an activity claim.

Table of Contents

Properties

$attemptNumber  : int
$policyProvided  : bool
$policy  : mixed

Methods

fromTask()  : self
isLastConfiguredAttempt()  : bool|null
True at or beyond a bounded final attempt, false for a remaining budget or explicit unlimited policy, and null for unknown policy or an invalid attempt.
isUnlimited()  : bool
Only an explicit max_attempts: null inside a policy means unlimited.
maxAttempts()  : int|null
A positive configured limit; null alone does not imply unlimited retries.
policy()  : mixed
Original decoded policy, including unknown fields and explicit legacy null.
__construct()  : mixed

Properties

Methods

fromTask()

public static fromTask(int $attemptNumber, array<string, mixed> $task) : self
Parameters
$attemptNumber : int
$task : array<string, mixed>
Return values
self

isLastConfiguredAttempt()

True at or beyond a bounded final attempt, false for a remaining budget or explicit unlimited policy, and null for unknown policy or an invalid attempt.

public isLastConfiguredAttempt() : bool|null

Cancellation, non-retryable failure, run closure and deadlines may end execution before the configured budget is exhausted.

Return values
bool|null

isUnlimited()

Only an explicit max_attempts: null inside a policy means unlimited.

public isUnlimited() : bool
Return values
bool

maxAttempts()

A positive configured limit; null alone does not imply unlimited retries.

public maxAttempts() : int|null
Return values
int|null

policy()

Original decoded policy, including unknown fields and explicit legacy null.

public policy() : mixed

__construct()

private __construct(int $attemptNumber, bool $policyProvided, mixed $policy) : mixed
Parameters
$attemptNumber : int
$policyProvided : bool
$policy : mixed
On this page

Search results