~/talk

Bulletproof Data Pipelines: Django, Celery, and the Power of Idempotency

Talkat DjangoCon Europe 2025 · 2025-04-23..04-27· [python, data-engineering]
links:none on file
slides:none on file

A concrete recipe for turning a slow per-frame sync loop into a resilient pipeline: use Django models as execution records, spawn one Celery task per frame, record status and errors in the DB, and skip already-completed frames with a status check so retries only hit failures. Handles videos with ~100k frames by parallel workers, uses idempotent executions and select_for_update to avoid races, and adds a sidecar retry loop to requeue failed frames. Works reliably for recovery and observability, but isn’t fully optimal.

AI-written summary · about

  1. 0:00Introduction and context
  2. 1:51Thought experiment overview
  3. 3:38Scaling pipeline challenges
  4. 5:24Problematic video enhancement code
  5. 7:12Adding basic error handling
  6. 9:05Introducing Celery for async tasks
  7. 11:10Idempotency with executions
  8. 13:38Manager and execution model
  9. 15:00Refactoring to resilient pipeline
  10. 18:17Final algorithm walkthrough
  11. 20:46Architecture trade-offs and scaling
  12. 23:14Key takeaways and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.