Class: Convertr::Scheduler::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/convertr/scheduler.rb

Direct Known Subclasses

AllBtFirst, Bt600First

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.



4
5
# File 'lib/convertr/scheduler.rb', line 4

def initialize
end

Instance Method Details

#schedule_next_task(convertor) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/convertr/scheduler.rb', line 7

def schedule_next_task(convertor)
  # TODO: locking
  if task = get_task_for_schedule(convertor)
    schedule(task, convertor)
  end
  task
end