~/talk

Introduction to Celery

Talkat PyOhio 2014 · 2014-07-26..07-27· [python]
links:none on file
slides:none on file

Covers hands‑on Celery setup: a real app uses a task to generate thumbnails and another to build PDFs, tasks queued via a broker and executed by workers; recommends RabbitMQ for durability over Redis because Redis can drop or duplicate tasks, shows periodic scheduling (example: 5 minute reminders), default consumer prefetch is 4, concurrency is usually “n+1” worker processes, warns against pickle and passing objects (use IDs), says you probably need no result backend until you really do and suggests multiprocessing over green threads.

AI-written summary · about

  1. 0:00Intro
  2. 1:59Major Features Allows out of band processing, started periodically or trigged by web requests Communicates with a message broker and distributes work Can act as a cron job replacement Can help ensure requests are timely Reasonably good at distributed computing and high availability
  3. 16:38The Role of the Message Broker and Choosing One
  4. 35:10Parallel Safety Write tasks to be parallel safe. You have no idea when tasks will run Plan for this. Trying to disallow certain tasks from running in parallelis focusing on the wrong problem. Use database transactions where needed Don't pass objects as task parameters.
~/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.