X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2Fneco%2Fexecution%2Fec.py;h=b793d0e4424a3c732c839b95b5c5b24ca0b3491e;hb=7a9e71714aa04620778742135637c9f1ed8c499b;hp=ba064d490c3ed237217117eb9649772948162742;hpb=6337302c0db631641b3e6a47c6e57c4864711acc;p=nepi.git diff --git a/src/neco/execution/ec.py b/src/neco/execution/ec.py index ba064d49..b793d0e4 100644 --- a/src/neco/execution/ec.py +++ b/src/neco/execution/ec.py @@ -75,7 +75,9 @@ class ExperimentController(object): def wait_finished(self, guids): while not all([self.state(guid) == ResourceState.FINISHED \ for guid in guids]) and not self.finished: - time.sleep(1) + # We keep the sleep as large as possible to + # decrese the number of RM state requests + time.sleep(2) def get_task(self, tid): return self._tasks.get(tid)