Durable Workflow PHP SDK — API Reference

Guides

WorkerSessionOptions
in package

FinalYes

Typed worker-session routing and lease options for activity commands.

Table of Contents

Properties

$allowReacquireAfterFailure  : bool
$createIfMissing  : bool
$leaseSeconds  : int
$maxConcurrentActivities  : int
$queue  : string|null
$requirements  : array<string|int, mixed>
$sessionId  : string
$ttlSeconds  : int

Methods

__construct()  : mixed
toWire()  : array<string, mixed>

Properties

Methods

__construct()

public __construct(string $sessionId[, string|null $queue = null ][, array<int, string> $requirements = [] ][, int $leaseSeconds = 120 ][, int $ttlSeconds = 1800 ][, int $maxConcurrentActivities = 1 ][, bool $createIfMissing = true ][, bool $allowReacquireAfterFailure = true ]) : mixed
Parameters
$sessionId : string
$queue : string|null = null
$requirements : array<int, string> = []
$leaseSeconds : int = 120
$ttlSeconds : int = 1800
$maxConcurrentActivities : int = 1
$createIfMissing : bool = true
$allowReacquireAfterFailure : bool = true
On this page

Search results