(args: argparse.Namespace)
| 155 | |
| 156 | |
| 157 | def cmd_status(args: argparse.Namespace) -> int: |
| 158 | job = load_job_state(args.job_id) |
| 159 | if job is None: |
| 160 | _print_json({'status': 'error', 'message': f'Job not found: {args.job_id}'}) |
| 161 | return 2 |
| 162 | |
| 163 | _print_json(_status_snapshot(job)) |
| 164 | return 0 |
| 165 | |
| 166 | |
| 167 | def cmd_result(args: argparse.Namespace) -> int: |
nothing calls this directly
no test coverage detected