(
s: string | undefined,
)
| 2064 | ) |
| 2065 | |
| 2066 | const isValidStatus = ( |
| 2067 | s: string | undefined, |
| 2068 | ): s is 'completed' | 'failed' | 'stopped' | 'killed' => |
| 2069 | s === 'completed' || |
| 2070 | s === 'failed' || |
| 2071 | s === 'stopped' || |
| 2072 | s === 'killed' |
| 2073 | const rawStatus = statusMatch?.[1] |
| 2074 | const status = isValidStatus(rawStatus) |
| 2075 | ? rawStatus === 'killed' |