mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-20 17:13:54 +08:00
manager: kill procs in parallel (#23010)
* manager: kill procs in parallel * oops block
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