Class: Convertr::Scheduler::Base
- Inherits:
-
Object
- Object
- Convertr::Scheduler::Base
- Defined in:
- lib/convertr/scheduler.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
- #schedule_next_task(convertor) ⇒ Object
Constructor Details
#initialize ⇒ Base
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 |