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
$attemptNumber read-only
public
int
$attemptNumber
$policyProvided read-only
public
bool
$policyProvided
$policy read-only
private
mixed
$policy
Methods
fromTask()
public
static fromTask(int $attemptNumber, array<string, mixed> $task) : self
Parameters
- $attemptNumber : int
- $task : array<string, mixed>
Return values
selfisLastConfiguredAttempt()
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|nullisUnlimited()
Only an explicit max_attempts: null inside a policy means unlimited.
public
isUnlimited() : bool
Return values
boolmaxAttempts()
A positive configured limit; null alone does not imply unlimited retries.
public
maxAttempts() : int|null
Return values
int|nullpolicy()
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