~/talk

Understanding Celery to maintain your sanity

Talkat DjangoCon Europe 2020 Β· 2020-09-18..09-19Β· [devops-and-delivery, python]
links:none on file
slides:none on file

Celery handles long background jobs via a broker (Redis in this case), workers that spawn subprocesses (concurrency defaults to CPU count) and a results store (Django ORM). Real issues: serializing whole files into task args filled Redis, worker prefetching (workers grabbed batches β€” default prefetch led to three long tasks stuck), and using acks_late without matching broker visibility_timeout=300s caused endless retries until visibility_timeout was raised to 24 hours. Operations used celery CLI, flower and Honeycomb tracing to inspect, revoke/terminate and recover the system.

AI-written summary Β· about

  1. 0:00Introduction to Celery sanity
  2. 1:09Why use Celery background
  3. 4:41Celery system components
  4. 10:05Common Celery pitfalls
  5. 13:35Task acknowledgment issues
  6. 16:43Debugging with Celery CLI
  7. 22:26Monitoring tools Flower
  8. 23:29Q&A start
  9. 24:56Changing default settings
  10. 27:04Optimization focus
  11. 28:09Celery tutorials
  12. 28:58Flower storage concerns
  13. 30:04Celery vs cron tasks
  14. 31:07Periodic tasks issues
~/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.