Class: Sidekiq::ScheduledSet

Inherits:
JobSet show all
Defined in:
lib/sidekiq/api.rb

Overview

The set of scheduled jobs within Sidekiq. Based on this, you can search/filter for jobs. Here’s an example where I’m selecting jobs based on some complex logic and deleting them from the scheduled set.

See the API wiki page for usage notes and examples.

Instance Attribute Summary

Attributes inherited from SortedSet

#Name, #name

Instance Method Summary collapse

Methods inherited from JobSet

#delete_by_jid, #delete_by_value, #each, #fetch, #find_job, #schedule

Methods inherited from SortedSet

#as_json, #clear, #scan, #size

Constructor Details

#initializeScheduledSet

Returns a new instance of ScheduledSet.



775
776
777
# File 'lib/sidekiq/api.rb', line 775

def initialize
  super("schedule")
end