Skip to content

Instantly share code, notes, and snippets.

@jlsherrill
Last active September 28, 2018 14:01
Show Gist options
  • Save jlsherrill/eab0b800e792000aedb3 to your computer and use it in GitHub Desktop.
Save jlsherrill/eab0b800e792000aedb3 to your computer and use it in GitHub Desktop.
Update paused tasks

Destroy

 ForemanTasks::Task.where(:state => :paused).where(:label => "Actions::Katello::Repository::Sync").destroy_all

Force stop:

ForemanTasks::Task.where(:state => 'paused').all.each{|t| t.update_attributes!(:state => 'stopped') }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment