app/models/logical/naf/construction_zone/boss.rb in naf-2.1.11 vs app/models/logical/naf/construction_zone/boss.rb in naf-2.1.12

- old
+ new

@@ -12,19 +12,21 @@ application_run_group_name, application_run_group_limit = 1, priority = 0, affinities = [], prerequisites = [], - enqueue_backlogs = false) + enqueue_backlogs = false, + application_schedule = nil) work_order = ApplicationWorkOrder.new(application, application_run_group_restriction, application_run_group_name, application_run_group_limit, priority, affinities, prerequisites, - enqueue_backlogs) + enqueue_backlogs, + application_schedule) @foreman.enqueue(work_order) end def enqueue_application_schedule(application_schedule, schedules_queued_already = []) prerequisite_jobs = [] @@ -52,10 +54,11 @@ application_schedule.application_run_group_name, application_schedule.application_run_group_limit, application_schedule.priority, application_schedule.affinities, prerequisite_jobs, - application_schedule.enqueue_backlogs) + application_schedule.enqueue_backlogs, + application_schedule) end def enqueue_rails_command(command, application_run_group_restriction = ::Naf::ApplicationRunGroupRestriction.limited_per_all_machines, application_run_group_name = :command,