Durable Workflow PHP SDK — API Reference

Guides

PollResponse
in package

FinalYes

Classifies full worker poll response envelopes using protocol fields.

Table of Contents

Constants

TERMINAL_POLL_STATUSES  : array<int, string> = ['stale_worker_registration', 'draining', 'stop...
TERMINAL_REASONS  : array<int, string> = ['stale_worker_registration', 'worker_heartbeat...

Methods

isNormalizationPendingFailure()  : bool
The closed pre-claim refusal retains the request identity through the key cutover.
isTerminal()  : bool
isTransientFailure()  : bool
Identify transport failures that the worker protocol explicitly permits a managed worker to retry. Upstream availability errors without a Server envelope have an uncertain outcome; structured errors retain their contract.
isTransientPayloadFailure()  : bool
Payload hydration may fail after the original poll has already acquired a claim.
__construct()  : mixed

Constants

TERMINAL_POLL_STATUSES

public array<int, string> TERMINAL_POLL_STATUSES = ['stale_worker_registration', 'draining', 'stopped']

TERMINAL_REASONS

public array<int, string> TERMINAL_REASONS = ['stale_worker_registration', 'worker_heartbeat_stale', 'worker_draining', 'worker_stopped']

Methods

isNormalizationPendingFailure()

The closed pre-claim refusal retains the request identity through the key cutover.

public static isNormalizationPendingFailure(ServerException $exception, string $requestId) : bool
Parameters
$exception : ServerException
$requestId : string
Return values
bool

isTerminal()

public static isTerminal(array<string, mixed> $response) : bool
Parameters
$response : array<string, mixed>
Return values
bool

isTransientFailure()

Identify transport failures that the worker protocol explicitly permits a managed worker to retry. Upstream availability errors without a Server envelope have an uncertain outcome; structured errors retain their contract.

public static isTransientFailure(ServerException $exception) : bool
Parameters
$exception : ServerException
Return values
bool

isTransientPayloadFailure()

Payload hydration may fail after the original poll has already acquired a claim.

public static isTransientPayloadFailure(ServerException $exception) : bool
Parameters
$exception : ServerException
Return values
bool
On this page

Search results