~/talk

From crontab to celery with no regrets

Talkat PyCon SE 2022 · 2022-11-03..11-04· [python]
links:none on file
slides:none on file

A company migrates hundreds of messy cron jobs into a Celery-based system and proves it handles backups, large imports/exports, session cleanup and long CPU tasks reliably. Architecture uses Celery + Redis broker, Django tasks exposed as shared_task, celery beat + Django periodic tasks driving schedules, and Flower for monitoring. Deployment runs via Docker Compose deployment with multiple worker replicas (they commonly run ~10 workers). Setup is fiddly but the GitLab repo contains runnable examples.

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:52The case for leaving cron
  3. 5:13Introduction to Celery
  4. 6:55Use cases for background tasks
  5. 10:04Architecture overview
  6. 12:06Broker selection
  7. 14:06Hello world example
  8. 17:16Integrating Celery with Django
  9. 22:12Scheduling tasks with Celery Beat
  10. 28:53Containerization and conclusion
~/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.