mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-01 21:45:10 +00:00
fix(remote): end the remote session when a signal or a closed console stops the client
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user