ppsspp_batch_status
Poll the progress of a background PPSSPP batch job without locking the emulator session. Check status, executed steps, and results read-only, or survey all retained jobs to recover a lost batch ID.
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); omit batch_id for survey/list mode (e.g. to recover a lost batch_id or audit background activity before touching the session).
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: with batch_id → {batch_id, session_id, status: queued|running|completed|failed|cancelled, executed, total, error, result, retention_jobs}; with batch_id omitted (survey) → {jobs: [{batch_id, session_id, status, executed, total, error, result_present}], retention_jobs} in submission order (finished jobs beyond retention are evicted and absent).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| batch_id | No | Job id returned by ppsspp_batch_step(background=true). Omit to survey ALL retained jobs instead (list mode; recovers a batch_id after the submit response was lost). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobs | No | All retained jobs, in submission order | |
| error | No | Error message if failed/cancelled (null when none; real runner emits null) | |
| total | No | Total steps in the batch | |
| result | No | Final ppsspp_batch_step-shaped response; present once the batch completed | |
| status | No | 'queued' / 'running' / 'completed' / 'failed' / 'cancelled' (protocol Tasks mapping: 'queued'→'working') | |
| batch_id | No | Job id | |
| executed | No | Steps executed so far | |
| session_id | No | Session the batch runs on | |
| retention_jobs | No | Finished-job retention window (in job count): finished jobs beyond the oldest this many are evicted and absent from jobs |