Skip to content

fix: add workflow cancellation support#840

Open
scarf005 wants to merge 3 commits intoaws-actions:masterfrom
scarf005:fix/9/workflow-cancellation
Open

fix: add workflow cancellation support#840
scarf005 wants to merge 3 commits intoaws-actions:masterfrom
scarf005:fix/9/workflow-cancellation

Conversation

@scarf005
Copy link

fixes #9

Description of changes:

adds AbortController to support workflow cancellation by listening to SIGINT and SIGTERM signals.

see: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-cancellation

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

adds AbortController to support workflow cancellation by listening to SIGINT and SIGTERM signals.

see: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-cancellation

fixes aws-actions#9
@s3cube
Copy link
Contributor

s3cube commented Mar 1, 2026

Thanks for this @scarf005! Could you add a dedicated test that actually fires the cancellation signal (e.g. emitting SIGINT/SIGTERM via process.emit()) and verifies that the abort is triggered and the wait operations are cancelled? The current tests confirm the abortSignal is passed through, but a test that exercises the full cancellation path would give us more confidence in the behaviour.

@scarf005 scarf005 marked this pull request as draft March 1, 2026 16:48
scarf005 added 2 commits March 2, 2026 02:40
Add a dedicated cancellation test that emits SIGTERM during service stabilization and verifies the abort signal cancels the waiter.

Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>

Assisted-by: openai/gpt-5.3-codex on opencode
Merge upstream master into workflow-cancellation branch while preserving cancellation-abort behavior and aligning max-delay waiter tests.

Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>

Assisted-by: openai/gpt-5.3-codex on opencode
@scarf005 scarf005 marked this pull request as ready for review March 1, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants