Batch Execution
Batch jobs and the resumable worker daemon
Rendering hundreds of blocks requires a queue with leases, heartbeats and explicit recovery — not a background thread you hope will not die.
Queue, not wish list
Batch Jobs stores provider, voice, status, attempts and output per item. Approve one block manually to set voice/speed, then queue the rest. Inline Run/Resume/Retry failed controls leave no manual guesswork.
The worker
The durable worker processes Kokoro jobs only. Start it with start_worker_windows.bat or the platform equivalent; it claims items with a lease, heartbeats progress and auto-recovers stale leases from crashed runs. Cloud TTS renders inline; it is not queued to the worker.
Queue management tactics
- Run a three-block smoke test before queueing 90.
- Download ZIP after the queue, not after each render.
- Cancel a failing item early — do not poison the whole batch.
- Check worker health: daemon status, lease recovery, retry budget.
Worker queue not progressing? Check daemon status and logs; recover stale leases; replay the item; verify FFmpeg, disk and model paths. The worker deliberately refuses to rescue broken settings silently.