Skip to content

fix(generic-worker): handle SIGTERM to properly terminate the worker#8293

Merged
matt-boris merged 1 commit intomainfrom
matt-boris/gwHandleSigterm
Feb 19, 2026
Merged

fix(generic-worker): handle SIGTERM to properly terminate the worker#8293
matt-boris merged 1 commit intomainfrom
matt-boris/gwHandleSigterm

Conversation

@matt-boris
Copy link
Contributor

@matt-boris matt-boris commented Feb 18, 2026

Fixes #8291.

Generic Worker: handles SIGTERM during task execution by triggering graceful termination, ensuring preempted tasks are properly resolved as exception/worker-shutdown instead of exception/claim-expired.

cc @bhearsum

@matt-boris matt-boris force-pushed the matt-boris/gwHandleSigterm branch from 551db29 to 3485458 Compare February 18, 2026 22:16
@matt-boris matt-boris marked this pull request as ready for review February 19, 2026 00:00
@matt-boris matt-boris requested a review from a team as a code owner February 19, 2026 00:00
@matt-boris matt-boris requested review from lotas and petemoore and removed request for a team February 19, 2026 00:00
Copy link
Contributor

@lotas lotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@matt-boris matt-boris merged commit 25ac3df into main Feb 19, 2026
73 checks passed
@matt-boris matt-boris deleted the matt-boris/gwHandleSigterm branch February 19, 2026 12:52
bhearsum added a commit to bhearsum/fxci-config that referenced this pull request Feb 20, 2026
This is primarily to help verify [the new SIGTERM handling](taskcluster/taskcluster#8293) before we roll it out more widespread.

I also want to get some data out of mozilla-platform-ops/worker-images#726, and possibly even revert that and rebuild before we move the main headless image forward.
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.

SIGTERM is not handled gracefully by generic-worker

2 participants