Exit code for a finished run/resume: non-zero on terminal failure. ``failed`` and ``aborted`` map to 1 so scripts and orchestrators can rely on the process exit code; ``completed`` and ``paused`` map to 0 (paused is a legitimate waiting state, not a failure).
(status_value: str)
| 252 | |
| 253 | |
| 254 | def _run_outcome_exit_code(status_value: str) -> int: |
| 255 | """Exit code for a finished run/resume: non-zero on terminal failure. |
| 256 | |
| 257 | ``failed`` and ``aborted`` map to 1 so scripts and orchestrators can |
| 258 | rely on the process exit code; ``completed`` and ``paused`` map to 0 |
| 259 | (paused is a legitimate waiting state, not a failure). |
| 260 | """ |
| 261 | return 1 if status_value in ("failed", "aborted") else 0 |
| 262 | |
| 263 | |
| 264 | def _emit_workflow_json(payload: dict[str, Any]) -> None: |
no outgoing calls
no test coverage detected