Step-by-step answer
Stretch 60–90 min6 stepsA deferrable-work batch pipeline against a mock
The deferrable-work path as a small, durable pipeline. P3 items go into SQLite, are flushed as batches every 10 minutes or 5,000 items within the API's size limits, polled, and their results applied through guarded updates, so duplicates are ignored and expired items are resubmitted once and then sent to the synchronous queue. A fake batches service runs it offline; an emulated backend runs it on a real model through OpenRouter or Ollama.
Back to the exercise