mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-06 22:22:11 +08:00
manager: kill procs in parallel (#23010)
* manager: kill procs in parallel * oops block old-commit-hash: ba67c355dbd032e4f6dfd95aaef519aa78c7c52a
This commit is contained in:
@@ -102,8 +102,13 @@ def manager_prepare():
|
||||
|
||||
|
||||
def manager_cleanup():
|
||||
# send signals to kill all procs
|
||||
for p in managed_processes.values():
|
||||
p.stop()
|
||||
p.stop(block=False)
|
||||
|
||||
# ensure all are killed
|
||||
for p in managed_processes.values():
|
||||
p.stop(block=True)
|
||||
|
||||
cloudlog.info("everything is dead")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user