class GoodJob::Scheduler::TimerSet

Custom sub-class of Concurrent::TimerSet for additional behavior. @private

Public Instance Methods

length() click to toggle source

Number of scheduled jobs in the queue @return [Integer]

    # File lib/good_job/scheduler.rb
286 def length
287   @queue.length
288 end
reset() click to toggle source

Clear the queue @return [void]

    # File lib/good_job/scheduler.rb
292 def reset
293   synchronize { @queue.clear }
294 end