Actions
Story #8930
closedTask #8495: [EPIC] As a user, I have a new-improved tasking system with new-style workers
As system admin i can gracefully shutdown new style workers
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 99
Quarter:
Description
New style workers should mark themselves as offline in the database if shut down. Also on receiving a signal to shut down, the worker should wait for a small amount of time (1-30 s) until it's currently running task finishes before aborting it.
Actions
Graceful worker shutdown
When a worker receives a SIGINT (ctrl-c) or SIGTERM (systemd), it will wait a bit for it's task to finish before aborting it and removing itself from the worker table.
fixes #8930 https://pulp.plan.io/issues/8930