Skip to content

Instantly share code, notes, and snippets.

@mccun934
Created June 21, 2018 21:40
Show Gist options
  • Save mccun934/ffee725285eda9046b7b4d77bcf69a0e to your computer and use it in GitHub Desktop.
Save mccun934/ffee725285eda9046b7b4d77bcf69a0e to your computer and use it in GitHub Desktop.
#!/bin/bash
systemctl stop foreman-tasks.service
cat <<EOF | foreman-rake console
User.current = User.anonymous_admin
ForemanTasks::Task.where(:label => "Actions::Candlepin::ListenOnCandlepinEvents").destroy_all
ForemanTasks::Task.where(:label => "Actions::Katello::EventQueue::Monitor").destroy_all
EOF
systemctl start foreman-tasks.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment