Class: GoodJob::Scheduler::TimerSet

Inherits:
Concurrent::TimerSet
  • Object
show all
Defined in:
lib/good_job/scheduler.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#lengthInteger

Number of scheduled jobs in the queue

Returns:

  • (Integer)


343
# File 'lib/good_job/scheduler.rb', line 343

delegate :length, to: :@queue

#resetvoid

This method returns an undefined value.

Clear the queue



347
348
349
# File 'lib/good_job/scheduler.rb', line 347

def reset
  synchronize { @queue.clear }
end