diff --git a/scheduling-abstraction-layer/src/main/java/org/activeeon/morphemic/PAGateway.java b/scheduling-abstraction-layer/src/main/java/org/activeeon/morphemic/PAGateway.java index 4158986af636b8712c0dfa676ce5cd9e3d92c462..0031a61406c4b9d6dfd63c481621fcfc0fadf0f3 100644 --- a/scheduling-abstraction-layer/src/main/java/org/activeeon/morphemic/PAGateway.java +++ b/scheduling-abstraction-layer/src/main/java/org/activeeon/morphemic/PAGateway.java @@ -1014,6 +1014,7 @@ public class PAGateway { setAllScalingOutMandatoryDependencies(paJob, job, scaledTaskName, newNodesNumbers); + paJob.setMaxNumberOfExecution(2); paJob.setProjectName("Morphemic"); long submittedJobId = schedulerGateway.submit(paJob).longValue(); @@ -1303,6 +1304,7 @@ public class PAGateway { setAllMandatoryDependencies(paJob, job); + paJob.setMaxNumberOfExecution(2); paJob.setProjectName("Morphemic"); long submittedJobId = schedulerGateway.submit(paJob).longValue(); @@ -1477,6 +1479,7 @@ public class PAGateway { setAllMandatoryDependencies(paJob, jobToSubmit); + paJob.setMaxNumberOfExecution(2); paJob.setProjectName("Morphemic"); long submittedJobId = -1L;