class Blender::SchedulingStrategy::PerTask
Public Instance Methods
compute_jobs(tasks)
click to toggle source
# File lib/blender/scheduling_strategies/per_task.rb, line 23 def compute_jobs(tasks) Log.debug("Computing jobs from #{tasks.size} tasks") job_id = 0 jobs = tasks.map do |task| hosts = task.hosts Log.debug("Creating job (#{hosts.size}|#{task.name})") job_id += 1 Job.new(job_id, task.driver, [task] , hosts) end Log.debug("Total jobs : #{jobs.size}") jobs end