lib/sidetiq/api.rb in sidetiq-0.4.0.rc2 vs lib/sidetiq/api.rb in sidetiq-0.4.0.rc3

- old
+ new

@@ -1,15 +1,15 @@ module Sidetiq # Public: Sidetiq API methods. module API # Public: Returns an Array of workers including Sidetiq::Schedulable. def workers - schedules.keys + Sidetiq::Schedulable.subclasses(true) end # Public: Returns a Hash of Sidetiq::Schedule instances. def schedules - clock.schedules.dup + workers.map(&:schedule) end # Public: Currently scheduled recurring jobs. # # worker - A Sidekiq::Worker class or String of the class name (optional)