fix(remote): end the remote session when a signal or a closed console stops the client

This commit is contained in:
imSp4rky
2026-11-30 17:29:35 -07:00
parent ffe812f054
commit bafce963d3
14 changed files with 1225 additions and 31 deletions
+3 -1
View File
@@ -417,7 +417,9 @@ Each job carries a cancellation event. When you `DELETE` a live job:
to `cancelled`. The polling loop notices the event, `terminate()`s the job worker
subprocess (escalating to `kill()` if it does not exit within 5 seconds), and raises
a cancellation so the task unwinds. The subprocess model is what makes this a clean,
immediate stop rather than a cooperative one.
immediate stop rather than a cooperative one. A job with the `remote` parameter first ends its
[remote session](remote-sessions.md#when-the-client-ends-a-remote-session), in at most 4
seconds, and runs no post-script after the cancel.
### Secret handling in serialized jobs