ddflow_job_end
Record that a job ended and how, including exit status; refuses jobs still running and defaults the exit code from the log unless overridden.
Instructions
Record that a job ended and how. Refused while the process is still running. The exit code defaults to the one its log recorded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | Yes | Job id. | |
| note | No | What came of it: metrics, where the output is. | |
| force | No | End a job that runs on ANOTHER host, after checking it there. Without it such a job is refused: 'could not look' is not 'not running'. | |
| as_agent | No | Subagent sharing the parent's connection: your own stable name, for this call only (see ddflow_identify). | |
| exit_code | No | Override the recorded exit code. |