Durable Workflow 2.43.0
2.43.0
View on GitHub
Changelog
Workflow 2.43.0
2.43.0 adds acknowledged heartbeat checkpoints to queued embedded V2 activities and exposes timeout cleanup outcomes in run lists. Apply the two package migrations before starting updated workers.
Upgrade notes
- The new public methods on
Workflow\V2\ActivityareheartbeatCheckpoint(),lastHeartbeatCheckpoint()andheartbeatResumeVersion(). Rename any application methods using those names before upgrading to avoid inherited method conflicts. - Migration
2026_11_28_000100_add_heartbeat_checkpoint_to_activity_executionsadds nullable checkpoint storage. Existing executions start without a checkpoint. The rollback refuses to drop the column while it contains retained checkpoints. Checkpoints follow activity execution retention.
Changes
- Queued embedded V2 activities can call
heartbeatCheckpoint($details)with a JSON-compatible PHP array. A successful return acknowledges the committed write on the logical activity execution. A later attempt can read the original acknowledgement time and typed details fromlastHeartbeatCheckpoint(). The accessor returnsnullwhen a supported attempt starts without a checkpoint and throwsActivityHeartbeatResumeUnavailablewhen the context lacks the contract. Ordinaryheartbeat()still reports operator progress. Use stable provider idempotency keys to reconcile external work after an uncertain outcome. (durable-workflow/.github#218, #1317) - Run lists show the timeout cleanup outcome (#863). The run summary gains a
nullable
timeout_cleanupJSON column holding what describe returns underrun.timeout_cleanup(outcome: runningwhile cleanup is open, then the recordedcompleted,failed,expiredorpreemptedoutcome), andRunListItemViewreturns it, null when no cleanup was recorded. Migration2026_11_26_000100_add_timeout_cleanup_to_workflow_run_summariesadds the column outside the migrator transaction under the schema lock budget, with no backfill. To fill it for opted-in runs that closed before the upgrade, rebuild them withworkflow:v2:rebuild-projections --run-id=.... - A signal wait interrupted by a delivered cooperative cancellation, including
timeout cleanup, is no longer reported as received by a later signal
(#1315, #1316).
SignalWaits, run detail and the projected waits show it ascancelledwith source statuscancellation_delivered, also for the member waits of a delivered group. A signal accepted after delivery is buffered under its own command identity, as any signal without an open wait is: itsSignalReceivedandSignalRejectedno longer carry the interrupted wait'ssignal_wait_id, and it no longer schedules a workflow task that could not apply it. AWorkflowTimedOutrun now closes its open signal waits like the other terminal events. History is unchanged and replay keeps its earlier view of these waits; runs recorded before the upgrade show the corrected wait state on their next projection. One upgrade edge case: on an external (bridge) worker, an in-flight run whose late signal an earlier engine attributed to the interrupted wait, and which then opens a new wait for that signal, may not schedule a task for it until another task runs. Embedded runs are unaffected.
Pull requests
#1312 Prove embedded timeout cleanup at signal/selection waits, under worker loss, and on the deadline turn
Richard McDaniel
+760 / -0
Merged
#1313 Carry the timeout cleanup outcome in the run summary (#863)
Richard McDaniel
+440 / -8
Merged
#1314 State that a completed cleanup outcome does not prove cleanup code ran
Richard McDaniel
+22 / -0
Merged
#1316 End a signal wait where cancellation was delivered
Richard McDaniel
+731 / -178
Merged
#1317 Resume embedded activities from acknowledged heartbeat checkpoints
Richard McDaniel
+463 / -20
Merged
#1318 Prepare Workflow 2.43.0
Richard McDaniel
+31 / -2
Merged