Commit 90078a2d authored by Simone Rossi's avatar Simone Rossi

[fix] Sleep random time U(0.5s;2s) between submissions

parent 53013033
Pipeline #11296 canceled with stages
...@@ -316,6 +316,8 @@ def main(): ...@@ -316,6 +316,8 @@ def main():
continue continue
logger.info('Job submitted with ID %d' % exec_id) logger.info('Job submitted with ID %d' % exec_id)
job_ids.append(exec_id) job_ids.append(exec_id)
import random
time.sleep(random.uniform(0.5, 2))
else: else:
logger.warning('Quota exceeded. No jobs can be scheduled now! Sleeping') logger.warning('Quota exceeded. No jobs can be scheduled now! Sleeping')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment