Skip to content

Commit

Permalink
[HL-Batch] Use max concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
RoiArthurB committed Aug 19, 2021
1 parent a4da4f3 commit 9c3db49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public SimulationRunner(final SimulationPopulation pop) {
population = pop;
runnables = new LinkedHashMap<>();
final IExperimentPlan plan = population.getHost().getSpecies();
if (plan.isHeadless()) {
if (plan.isHeadless() && !plan.isBatch()) {
concurrency = 1;
} else {
concurrency = GamaExecutorService.getParallelism(population.getHost().getScope(), plan.getConcurrency(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ public void runBatchSimulation(final List<String> args) throws FileNotFoundExcep

final IExperimentPlan expPlan = mdl.getExperiment(args.get(args.size() - 2));

expPlan.setHeadless(true);
expPlan.open();

System.exit(0);
Expand Down

0 comments on commit 9c3db49

Please sign in to comment.