app/models/logical/naf/construction_zone/work_order.rb in naf-2.0.4 vs app/models/logical/naf/construction_zone/work_order.rb in naf-2.1.0
- old
+ new
@@ -1,10 +1,16 @@
module Logical::Naf::ConstructionZone
class WorkOrder
- attr_reader :command, :application_type, :application_run_group_restriction, :application_run_group_name
- attr_reader :application_run_group_limit, :priority, :enqueue_backlogs
- attr_reader :application, :application_schedule
+ attr_reader :command,
+ :application_type,
+ :application_run_group_restriction,
+ :application_run_group_name,
+ :application_run_group_limit,
+ :priority,
+ :enqueue_backlogs,
+ :application,
+ :application_schedule
def initialize(command,
application_type = ::Naf::ApplicationType.rails,
application_run_group_restriction = ::Naf::ApplicationRunGroupRestriction.limited_per_all_machines,
application_run_group_name = :command,
@@ -40,10 +46,11 @@
application_type_id: application_type.id,
application_run_group_restriction_id: application_run_group_restriction.id,
application_run_group_name: application_run_group_name,
application_run_group_limit: application_run_group_limit,
priority: priority,
- application_id: application.try(:id)
+ application_id: application.try(:id),
+ application_schedule_id: application_schedule.try(:id)
}
end
def historical_job_affinity_tab_parameters
@affinities.map do |affinity|