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
Just a little update for RHEL 7 and CENTOS 7, this original poster has done a great job.
RHEL 6 / CENTOS 6:
Shut down foreman-tasks:
service foreman-tasks stop
Open the rails console:
foreman-rake console
and run:
start foreman-tasks:
` service foreman-tasks start
RHEL 7 / CENTOS 7:
Shut down foreman-tasks:
systemctl stop foreman-tasks
Open the rails console:
foreman-rake console
and run:
start foreman-tasks:
systemctl start foreman-tasks