From 1e9d8d1f44378805e6dffc047a3a72588500e130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Thu, 29 Aug 2019 13:46:07 +0200 Subject: [PATCH] Wait before threads start --- distribute_tasks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/distribute_tasks.py b/distribute_tasks.py index bcc46f6..eeeaca2 100644 --- a/distribute_tasks.py +++ b/distribute_tasks.py @@ -3,6 +3,7 @@ import threading import queue import sys +import time import yaml import paramiko @@ -175,6 +176,7 @@ class Orchestrator: def start(self): for thread in self.threads: thread.start() + time.sleep(0.1) for thread in self.threads: while thread.is_alive():