Durable Workflow PHP SDK — API Reference

Guides

ActivityContext
in package

FinalYes

Activity attempt metadata and heartbeat/cancellation support.

Table of Contents

Properties

$activityAttemptId  : string
$activityType  : string
$attemptNumber  : int
$leaseOwner  : string
$taskId  : string
$client  : Client
$heartbeatRequest  : Closure|null
$localHeartbeat  : Closure|null

Methods

__construct()  : mixed
heartbeat()  : void

Properties

$heartbeatRequest read-only

private Closure|null $heartbeatRequest = null

Methods

__construct()

public __construct(Client $client, string $taskId, string $activityAttemptId, string $leaseOwner, string $activityType, int $attemptNumber[, Closure|null $localHeartbeat = null ][, callable(array<string|int, mixed>): array<string, mixed>|null $heartbeatRequest = null ]) : mixed
Parameters
$client : Client
$taskId : string
$activityAttemptId : string
$leaseOwner : string
$activityType : string
$attemptNumber : int
$localHeartbeat : Closure|null = null
$heartbeatRequest : callable(array<string|int, mixed>): array<string, mixed>|null = null

heartbeat()

public heartbeat([array<string|int, mixed> $details = [] ]) : void
Parameters
$details : array<string|int, mixed> = []
On this page

Search results