Change daemon --stop without any specific flag to terminate the agents by worker id lexicographic order

This commit is contained in:
allegroai
2020-07-11 01:43:54 +03:00
parent 94997f9c88
commit 17d2bf2a3e
2 changed files with 5 additions and 3 deletions

View File

@@ -65,6 +65,7 @@ def terminate_process(pid, timeout=10.):
except Exception:
return True
def kill_all_child_processes(pid=None):
# get current process if pid not provided
include_parent = True