~/talk

How to Schedule Tasks with Celery and Django

Talkat DjangoCon US 2023 · 2023-10-16..10-20· [python, devops-and-delivery]
slides:none on file

Celery integrates with Django using a message broker and optional scheduler and result store; the talk recommends RabbitMQ over Redis for brokers, warns Redis visibility-timeout pitfalls, and suggests Django ORM or Redis for results. A concrete case study generates voter rolls for 2,000+ centers by splitting voters into stations of 500–600 voters, compares serial, group, chain, and chord patterns, finds 7–8 second tasks ideal for graceful shutdown, and shows starmap runs sequentially not parallel.

AI-written summary · about

  1. 0:00Introduction
  2. 3:19What is Celery
  3. 10:15Adding Celery to Django
  4. 13:30Configuring Celery tasks
  5. 16:03Scheduling with Celery Beat
  6. 18:54Result store setup
  7. 21:44Designing Celery tasks
  8. 26:25Voter roll case study
  9. 37:26Celery best practices
  10. 38:51Q&A
~/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.