Lab: Run the desk as a budgeted background worker
40 min read·13 Oct 2026
Module 15 · Lab · About 80 minutes · Needs: the Module 3 lab's tools.py, lessons 1 (jobs, checkpoints, retries, schedules), 2 (serving, limits, tenants) and 3 (the budget ledger)What you are building
It is Friday 3 July 2026, week 12 (simulated), the last day before full launch. This lab moves the module into returns_desk/worker.py: Lesson 1's RQ jobs, including work_overnight_queue and check_all_waiting for cron_config.py. Every request reserves from Lesson 3's budget ledger before it may call a model. Lesson 2's FastAPI service shares the file, so web and workers share one job definition. Tool calls still go through Module 3's call. You follow Aisha's R-1001.