In certain situations the user can end up with large lists of this task running or stuck in paused:pending state and can't be mass resumed.
See attached screenshot.
We need to ensure there is only one of these tasks running at a time and we don't spam the tasks list with multiple tasks that can't be mass resumed.
Created attachment 1052753 [details]
1. Verify no Pending ListenOnCandlepinEvents tasks exist under Monitor > Tasks (or if they do count the # that do)
2. Shut down qpidd
3. Restart foreman-tasks and wait ~60 seconds
4. Restart foreman-tasks again and wait ~60 seconds
5. start qpidd
6. Restart foreman-tasks once more
Under Monitor > Tasks you will see one or more tasks stuck in 'pending'/.
Created redmine issue http://projects.theforeman.org/issues/11166 from this bug
Verified this bug on latest Satellite GA Snap 14 as per the steps mentioned in comment 3.
The bug is no more reproducible and has been fixed.
Created attachment 1055270 [details]
*** Bug 1241983 has been marked as a duplicate of this bug. ***
This bug was fixed in Satellite 6.1.1 which was delivered on 12 August, 2015.