app/models/logical/naf/construction_zone/foreman.rb in naf-1.1.4 vs app/models/logical/naf/construction_zone/foreman.rb in naf-2.0.0
- old
+ new
@@ -33,10 +33,10 @@
# XXX but this code is only used as a heuristic for queues
#(::Naf::QueuedJob.where(:application_run_group_name => application_run_group_name).count +
#::Naf::RunningJob.where(:application_run_group_name => application_run_group_name,
#:started_on_machine_id => @machine.id).count) >= application_run_group_limit
-
+
# XXX just returning false
false
elsif application_run_group_restriction.id == ::Naf::ApplicationRunGroupRestriction.limited_per_all_machines.id
(::Naf::QueuedJob.where(:application_run_group_name => application_run_group_name).count +
::Naf::RunningJob.where(:application_run_group_name => application_run_group_name).count) >= application_run_group_limit