~/talk

Playing tasks with Django-Celery

Talkat EuroPython 2011 · 2011-06-20..06-26· [python, django]
links:none on file
slides:none on file

Shows a working Django-Celery setup at Jamendo: RabbitMQ broker, periodic tasks stored in the DB and scheduled via the Django admin, and a celerycam that snapshots task state every 5–10s. Demonstrates splitting a 200000-track job into 200000 tracks split into 1000-item slices and dispatching subtasks so failures are isolated, explains retry behavior (countdown, exception passed to retry, default max_retries ≈30), and adds a custom Task base overriding call/after_return for temp folders and locks stored in MongoDB with manual release. Also adds centralized logging by attaching handlers to Celery’s log signals and a web button to rerun tasks from the admin.

AI-written summary · about

  1. 0:00Introduction and Context
  2. 3:18Technical Difficulties
  3. 13:54Celery Task Basics
  4. 17:44Task Sets and Parallelism
  5. 22:08Custom Task Classes
  6. 24:17Django Celery Integration
  7. 28:50Manual Task Control
  8. 30:27Unique Task Management
  9. 33:52Centralized Logging
  10. 37:02Q&A and Final Remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.