worker: add options to finish work before shutdown; extend or turn off forced shutdown timeout #104272
No reviewers
Labels
No Label
Good First Issue
Priority
High
Priority
Low
Priority
Normal
Status
Archived
Status
Confirmed
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Job Type
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: studio/flamenco#104272
Loading…
Reference in New Issue
No description provided.
Delete Branch "viktorasm/flamenco:brainstorm-autoscaling-features"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This changes shutdown behavior of workers slightly:
--finish-work-before-shutdown
flag, SIGINT and SIGTERM signals will no longer cancel worker context. Instead, they serve as advice for worker to enter shutdown mode - finish all work and exit; this feature will cooperate with forced shutdown timeout.--forced-shutdown-timeout
, and, if set to 0, turns off forcefull shutdown feature. Operating system can still kill the process forcefully.Please don't send in pull requests, unless they are fixing a bug or adding a feature for which the design has been approved. Writing code before design/approach approval is at your own risk, as the entire approach taken could be rejected.
Point taken. The code is part of a personal experiment, without building a proof-of-concept would be very hard to propose a final design. No expectations this will be accepted to main repo, just wanted to test the waters now versus doing that later.
You're of course completely free to do whatever you want with your time ;-)
Sending in a PR to an official repository does send a more specific signal, though, so that's what I was responding to.
Pull request closed