job_status
Check a background job's current state (running, succeeded, failed, stopped) and its result or error by providing the run_id returned by build_async or run_async.
Instructions
Return a background job's current state.
Use when: you started a job with ``build_async``/``run_async`` and want to
know whether it is still ``running`` or has ``succeeded``/``failed``/
``stopped`` — and, when finished, its report (``result``) or ``error``.
Read-only and idempotent. Related: ``list_jobs`` (all jobs), ``stop_job``.
Returns the job object (run_id, kind, project_path, status, result, error,
timestamps), or ``{error}`` when the run_id is unknown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | The run_id returned by build_async or run_async. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |