fix(process): label background completion causes (#46659)
Track why a background process finished and include that source in notify-on-complete messages so SIGTERM from process.kill, kill_all, backend loss, and ordinary exits are distinguishable.
This commit is contained in:
@@ -6652,7 +6652,7 @@ def test_notification_poller_delivers_completion(monkeypatch):
|
||||
|
||||
# Should have triggered an agent turn
|
||||
assert len(turns) == 1
|
||||
assert "[IMPORTANT: Background process proc_poller_test completed" in turns[0]
|
||||
assert "[IMPORTANT: Background process proc_poller_test completed normally" in turns[0]
|
||||
finally:
|
||||
server._sessions.pop("sid_poll", None)
|
||||
while not process_registry.completion_queue.empty():
|
||||
|
||||
Reference in New Issue
Block a user