ppsspp_batch_status
Check the status and progress of a background batch job using its batch ID. Returns queued, running, completed, failed, or cancelled state with executed step counts, without acquiring session locks.
Instructions
PURPOSE: Poll the state and progress of a background batch job without touching the session.
USAGE: batch_id from ppsspp_batch_step(background=true).
BEHAVIOR: Lock-free registry read — never opens the WS transport and never waits for the per-session lock, so it is safe to call while a background batch (or any other tool) owns the session. Executed-step count updates as steps complete; 'completed' carries the full foreground-shaped result. READ-ONLY.
RETURNS: {batch_id, session_id, status: queued|running|completed|failed|cancelled, executed, total, error, result, retention_jobs}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch_id | Yes | Job id returned by ppsspp_batch_step(background=true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | Yes | Error message if failed/cancelled | |
| total | Yes | Total steps in the batch | |
| result | Yes | Final ppsspp_batch_step-shaped response; present once the batch completed | |
| status | Yes | 'queued' / 'running' / 'completed' / 'failed' / 'cancelled' (protocol Tasks mapping: 'queued'→'working') | |
| batch_id | Yes | Job id | |
| executed | Yes | Steps executed so far | |
| session_id | Yes | Session the batch runs on | |
| retention_jobs | Yes | Finished-job retention window of the registry (in job count, not seconds): completed/failed/cancelled jobs beyond the oldest this many are evicted. Precursor of the protocol-level Task ttl. |