Class: Binpacker::Scheduler
- Inherits:
-
Object
- Object
- Binpacker::Scheduler
- Defined in:
- lib/binpacker/scheduler.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#partition(tests:, worker_count:, timings:) ⇒ Object
Returns Array<WorkerQueue> one per worker.
Class Method Details
.for(strategy) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/binpacker/scheduler.rb', line 10 def self.for(strategy) case strategy.to_s when "lpt" then LptScheduler.new else raise SchedulerError, "unknown scheduling algorithm: #{strategy}" end end |
Instance Method Details
#partition(tests:, worker_count:, timings:) ⇒ Object
Returns Array<WorkerQueue> one per worker.
6 7 8 |
# File 'lib/binpacker/scheduler.rb', line 6 def partition(tests:, worker_count:, timings:) raise NotImplementedError end |