(
s: string | undefined,
)
| 2091 | ) |
| 2092 | |
| 2093 | const isValidStatus = ( |
| 2094 | s: string | undefined, |
| 2095 | ): s is 'completed' | 'failed' | 'stopped' | 'killed' => |
| 2096 | s === 'completed' || |
| 2097 | s === 'failed' || |
| 2098 | s === 'stopped' || |
| 2099 | s === 'killed' |
| 2100 | const rawStatus = statusMatch?.[1] |
| 2101 | const status = isValidStatus(rawStatus) |
| 2102 | ? rawStatus === 'killed' |