Project

Profile

Help

Story #8930

closed

Task #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

Added by mdellweg over 3 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
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 #1

Updated by mdellweg over 3 years ago

  • Tracker changed from Task to Story
Actions #2

Updated by pulpbot over 3 years ago

  • Status changed from NEW to POST
Actions #3

Updated by mdellweg over 3 years ago

  • Sprint/Milestone set to 3.14.0
Actions #4

Updated by bmbouter over 3 years ago

  • Assignee set to mdellweg
Actions #5

Updated by mdellweg over 3 years ago

  • Sprint set to Sprint 99

Added by mdellweg over 3 years ago

Revision 58873f3c | View on GitHub

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

Actions #6

Updated by mdellweg over 3 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #7

Updated by pulpbot over 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions #8

Updated by bmbouter over 3 years ago

  • Parent issue set to #8495

Also available in: Atom PDF