Bug #25935
closedTasks cleanup rake tasks acts as an executor
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1669973
Description of problem:
The foreman_tasks:cleanup rake task runs as an executor. This means that during the task cleanup the rake task can actually start processing satellite's tasks. When the rake task exits it may (or may not) leave the tasks it was processing in some kind of bad state (abnormal termination?).
Version-Release number of selected component (if applicable):
I'm not aware of any recent change which could introduce this behavior, this probably affects all satellite versions.
How reproducible:
Always
Steps to Reproduce:
1. Go into dynflow console
2. Run foreman_tasks:cleanup rake task
3. Keep refreshing the page until a new world record appears
Actual results:
The world used by the rake task appears under executor worlds
Expected results:
The world used by the rake task appears under client worlds
Additional info: