Long running tasks like LOCE can stick around after restart
Description of problem:
(note: this bug is related to the way a couple of tasks are managed, not the tasks plugin itself. I wasn't sure of the best category)
If the Satellite server has issues that result in unclean shutdown, its possible for the long-running tasks to not get cleaned up at termination. This prevents the long-running tasks from restarting upon server restart. Users have to shut down foreman-tasks again, clean the long-running tasks, and then restart.
The long-running tasks are "Listen On Candlepin Events" and "Monitor Event Queue". I haven't seen issues with "Insights Email Notifications" but it may fall into the same boat.
Version-Release number of selected component (if applicable): 6.2.10
#1 Updated by Adam Ruzicka almost 5 years ago
- Subject changed from LOCE task can stick around after restart to Long running tasks like LOCE can stick around after restart
We've seen more than enough cases where due to some restarts these tasks either refuse to start or start when they shouldn't. We need a way to reliably enforce there is exactly one of each of these tasks running.