HomePhabricator

Support graceful shutdown of background runner
d8604e481ed5Unpublished

Tags
None
Referenced Files
None
Subscribers
None

Unpublished Commit · Learn More

Publishing Disabled: All publishing is disabled for this repository.

Description

Support graceful shutdown of background runner

Kubernetes will send us a SIGTERM signal when the background runner
should be stopped (followed by a SIGKILL 30 seconds later if we don’t
shut down in time). Catch this signal and stop the main loop in that
case: this still lets us finish the current command (as long as it
doesn’t take too long).

Details

Provenance
LucasWerkmeisterAuthored on Apr 19 2019, 5:16 PM
Parents
R2494:50c3fcc33bf0: Move two functions to DatabaseStore
Branches
Unknown
Tags
Unknown
ChangeId
None