Repository navigation
Advertise native timeout cleanup after installed vectors pass - #1336
Merged
Merged
Conversation
Native has served opt-in deadline-triggered timeout cleanup dark since
3.14.0. The contract vectors 1-12 now pass installed against published
native with the published PHP SDK 3.31.0 worker, so cluster info and
worker responses advertise timeout_cleanup {supported: true, version: 1}.
Admission is unchanged: an opted-in start still needs a live worker on
its queue that advertises the capability.
Describe and run detail report the portable outcome "running" while
cleanup is open, as embedded Workflow 2.40.0 does.
scripts/conformance/timeout-cleanup runs the vectors against any
published native image with workers on a published PHP SDK from
Packagist.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rmcdaniel
marked this pull request as ready for review
November 25, 2026 21:17
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Independent review: PASS. The reviewer saw only this PR and #1201 and reviewed head No blocking findings:
Non-blocking follow-ups:
🤖 Generated with Claude Code |
|
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Advertise
timeout_cleanup: {supported: true, version: 1}in native discovery. The runtime has shipped dark since 3.14.0 (#1235). The contract vectors 1 to 12 now pass installed against published native, with a worker on the published PHP SDK 3.31.0, the first SDK whose worker advertises the capability and sends the interruption marker (durable-workflow/sdk-php#481). Part of #1201.What changes
timeout_cleanup::ADVERTISEDistrue, so/api/cluster/infocapabilitiesand every worker response'sserver_capabilitiescarrytimeout_cleanup: {supported: true, version: 1}. Admission is unchanged: an opted-in start is still refused with 422timeout_cleanup_not_supportedunless a live worker on the queue advertises the capability, and there is never a silent fallback to a hard timeout.outcome: "running"while the engine's timeout request is open, as the portable contract and embedded Workflow 2.40.0 do. This field wasnullbefore.stateand the other native fields are unchanged.WorkerServerCapabilities.timeout_cleanupmember (version 68 to 69).docs/rust-server-port.mdare updated.scripts/conformance/timeout-cleanup/run.shruns the vectors against any published native image, with workers on any published PHP SDK installed from Packagist. Nothing in it builds product source.vectors.phpdrives raw HTTP, andworker.phpis the SDK worker. Every container, the network and the local PHP image are removed on exit.Installed acceptance (published native 3.29.0, PHP SDK 3.31.0)
Image
durableworkflow/server@sha256:a2f588ec34b0b3a5a1eb298ce53c0b823260f86cec7bb5c5cb3577dcc5df0127on SQLite, withdurable-workflow/sdk3.31.0 from Packagist. The clocks are shorter than the contract table (a 12 s allowance).110 of 110 checks pass. The Server's own advertisement was
null, as expected for 3.29.0.timeout_cleanup_not_supported, nothing written. The 0, above 86400 and no-hard-timeout field rules also refuse.WorkflowTimeoutCleanupStartedwith work = hard - allowance,WorkflowTimedOutcompleted, noWorkflowCompleted, describefailed/timed_out. Code sawWorkflowTimeoutCleanupRequestedwithcause: timeout.completed.failedwithfailure_id,failure_category: timeout, message ends "Timeout cleanup failed."expired, every open timer settled beforeWorkflowTimedOut.terminateand hardcancelduring cleanup:WorkflowTerminated/WorkflowCancelledwithpreempted, noWorkflowTimedOut.completed.completed, and only the replacement ran the cleanup activity (allowance 40 s).run, cleanup deadline = run deadline.request-cancellation(120 s) before the work deadline: capped at the hard deadline, no timeout cleanup entered, code saw an ordinary cancellation,WorkflowTimedOut.cancellation_cleanuppreempted.WorkflowStartedandWorkflowTimedOutcarry notimeout_cleanup, no cleanup is entered, and no interruption is delivered.The per-check table and every recorded history were kept with the run. To reproduce:
After a release, run it with that release's image and
EXPECT_ADVERTISED=true.Tests
admission_refuses_invalid_allowances_and_queues_without_a_capable_workernow asserts both discovery surfaces advertise version 1.outcomeisnullwhile armed andrunningwhile cleanup is open.every_published_capability_is_answeredcounts 70 capabilities and checks the new entry.Not in this PR
🤖 Generated with Claude Code