stop_job
Request cooperative cancellation of a running background job. Finishes any in-flight task, starts no new work, and returns a partial report.
Instructions
Request cooperative cancellation of a running background job.
Use when: a ``build_async``/``run_async`` job should stop — it finishes any
in-flight task and starts no new work, then produces a partial report. Poll
``job_status`` afterward to confirm it reaches ``stopped``. Idempotent:
stopping a finished or already-stopped job is a harmless no-op. Related:
``job_status``, ``list_jobs``.
Returns ``{run_id, stopping: true}`` when a running job was signalled, or
``{run_id, stopping: false}`` when the id is unknown or already finished.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | The run_id of the job to stop. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |