Project

Profile

Help

Task #2430

Updated by bmbouter almost 7 years ago

Currently Pulp worker DB records are deleted when workers go missing or are shut down, and created when they are first observed or updated. It would be beneficial to keep these records. This allows someone to read these records post-mortem. It has a tertiary benefit that Tasks won't be cascade deleted due to the Worker objects being removed. 

 To resolve this, introduce a boolean named 'online' on the Worker model. The code in pulp_celerybeat that manages these Worker records would be updated to set the 'online' value when workers start and stop. The field's default should correspond with its usage. 

 Currently on 3.0-dev the pulp_celerybeat code all lives inside of here[0].  

 [0]: https://github.com/pulp/pulp/blob/3.0-dev/platform/pulp/tasking/services/worker_watcher.py https://github.com/pulp/pulp/tree/3.0-dev/tasking/pulp/tasking

Back