class Roundhouse::ScheduledSet
Allows enumeration of scheduled jobs within Roundhouse
. Based on this, you can search/filter for jobs. Here’s an example where I’m selecting all jobs of a certain type and deleting them from the retry queue.
r = Roundhouse::ScheduledSet.new r.select do |retri| retri.klass == 'Roundhouse::Extensions::DelayedClass' && retri.args[0] == 'User' && retri.args[1] == 'setup_new_subscriber' end.map(&:delete)
Public Class Methods
new()
click to toggle source
Calls superclass method
Roundhouse::SortedSet::new
# File lib/roundhouse/api.rb, line 617 def initialize super 'schedule' end