Shut down foreman-tasks:
service foreman-tasks stop
Open the rails console:
foreman-rake console
and run:
ForemanTasks::Task.where(:label => 'Actions::Candlepin::ListenOnCandlepinEvents').destroy_all
exit
start foreman-tasks:
service foreman-tasks start
For those of us that like a batch mode approach
combining my and @sneckfilter's contribution and some other input
RHEL7/CentOS7
stop foreman tasks:
systemctl stop foreman-tasks
destroy paused tasks:
start foreman tasks:
systemctl start foreman-tasks
RHEL6/CentOS6
stop foreman tasks:
service foreman-tasks stop
destroy paused tasks:
start foreman tasks:
service foreman-tasks stop