is_abnormal_host_death
Was this notification an abnormal death?
Function in muse_code
Exit 0 (cleanShutdown) is the ONLY row where the run was
cancelled, the drain completed, and the durable SessionEnd records
were written. Every other row — including tidy-looking names like
configError — left no SessionEnd, which is what “abnormal” means
here. A transport EOF the client did not cause left no SessionEnd
either, so it joins the same predicate rather than a parallel one that
could drift.
Signature
Section titled “Signature”is_abnormal_host_death(notification: HostDeathNotification) -> bool
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
notification |
The process-exit classification or the transport EOF. |
Returns
Section titled “Returns”True for every notification but the orderly cleanShutdown.
Source
clients/sdk-py/src/muse_code/facade/host_death.py:148