Skip to content

Document service-mode timeout cleanup - #626

Merged
rmcdaniel merged 2 commits into
mainfrom
general/docs-863-timeout-cleanup-service
Nov 26, 2026
Merged

rmcdaniel merged 2 commits into
mainfrom
general/docs-863-timeout-cleanup-service

Conversation

@rmcdaniel

@rmcdaniel rmcdaniel commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Updates the public timeout-cleanup guide for what has shipped under durable-workflow/workflow#863.

docs/features/timeouts.md (#timeout-cleanup):

  • Availability: embedded queue workers from Workflow 2.29.0 (embedded poll-mode starts refuse it); service mode from native Server 3.30.0. Still marked experimental, matching the contract and api-stability.md.
  • Where to read the outcome: history stays authoritative. From Workflow 2.40.0 and on Server 3.30.0, describe (run.timeout_cleanup), run detail and the bounded run observation Waterline reads report the recorded state (outcome: running with cause, kind, detection time and deadlines; then the terminal outcome, with failure_id for failed). This replaces the old "describe carries no cleanup outcome" text.
  • Service mode: timeout_cleanup_seconds on starts and start_child_workflow, the timeout_cleanup v1 capability, admission only with a live advertising worker, otherwise 422 timeout_cleanup_not_supported. Supporting workers need cooperative cancellation enabled: PHP SDK 3.31.0+ (3.32.0+ for the stricter marker rule), Python SDK 2.24.0+, Rust SDK 4.25.0+.
  • The marker rule for SDK authors, linking the portable contract (Workflow 2.42.0).
  • Mixed-queue guidance from the release notes.
  • The contract's caveat (workflow#1314) that completed does not prove cleanup code ran: the interruption reaches code only at the next unresolved durable wait, how that shows in history, and running must-run compensation on every path past the work deadline. The completed and preempted rows now follow the contract, and the guide says list views don't show the cleanup state yet.
  • Removed the stale "embedded only / Server #1201 pending" paragraph.

docs/features/sagas.md: the cross-reference no longer says service starts refuse the option, and links to the completed caveat.

The changed paragraphs are translated in all seven locales, with the new source hashes recorded. Anchors are unchanged. check-doc-translation-updates and check-doc-translations pass locally.

🤖 Generated with Claude Code

Native Server 3.30.0 admits timeout_cleanup_seconds on service starts when a
supporting worker is on the task queue. Update the timeout-cleanup guide and
the saga cross-reference: embedded and service availability, where describe,
run detail and the Waterline observation report cleanup (Workflow 2.40.0),
the service marker rule and the mixed-queue guidance. Translate the changed
paragraphs into every offered locale and record the new source hashes.

Refs durable-workflow/workflow#863

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rmcdaniel rmcdaniel added the agent:general Pull request opened by General agent label Nov 26, 2026
The interruption reaches workflow code only at the next durable wait whose
result was not already in history, so code can return without it and still
record completed. Add that caveat from the portable contract, with how to
spot it in history and where to run compensation; reword the completed and
preempted rows; note that list views don't show cleanup state yet; and link
the saga guide to the caveat. Translate into every offered locale and record
the new source hashes.

Refs durable-workflow/workflow#863

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@rmcdaniel

Copy link
Copy Markdown
Member Author

Independent review: PASS at f7d9c2a393da077be1206d8a49a43d04c917ddc6. The reviewer saw only this PR, durable-workflow/workflow#863 and the contract on workflow main.

  • First pass at 473c9032: BLOCKING.
    • The guide lacked the contract's caveat that a completed outcome doesn't prove cleanup code ran. That matters for saga users following the "compensate in the handler" guidance.
    • Otherwise it was accurate against the contract and the Server 3.30.0 release notes. No "service starts refuse it" claims remained, the unreleased run-list field was not claimed, anchors were unchanged, translations were faithful and hashes matched.
  • Delta at f7d9c2a3: PASS.
    • The completed row and a following paragraph cover delivery at the next unresolved durable wait, the completed-without-delivery history signature, and idempotent must-run compensation.
    • The preempted row adds the hard-deadline case. List views are noted as not showing the state yet.
    • All 7 locales are faithful. The hashes match timeouts.md 69aa0ffe… and sagas.md e3727079…. CI passes 11 of 11.
  • Non-blocking: "does not prove cleanup code ran" appears twice in a row.

🤖 Generated with Claude Code

@rmcdaniel
rmcdaniel merged commit f12cdbe into main Nov 26, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent:general Pull request opened by General agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant