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') }
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') }