[Bugfix] Ensure stage and diffusion subprocesses exit when parent dies unexpectedly (#3751)

Signed-off-by: Lancer <maruixiang6688@gmail.com>
Co-authored-by: Alicia <115451386+congw729@users.noreply.github.com>
This commit is contained in:
LancerandAlicia authored and GitHub committed 2026-05-28 08:22:04 +08:00
1 parent 1f3a3e3848
commit 5c3c81920b
12 files changed
+270 -36

No files matched your search

@@ -28,7 +28,7 @@ class FakeAdapter:
req = running.pop()
self.waiting_for_chunk_running_requests.append(req)
def restore_queues(self, waiting, running):
def restore_queues(self, waiting, running, scheduler_requests=None):
"""Put requests back."""
self.restore_called = True
running.extend(self.waiting_for_chunk_running_requests)