~/talk

Celery on AWS ECS - art of background tasks & continuous deployment

Talkat Python Web Conf 2023 · 2023-03-13..03-17· [python, devops-and-delivery]
slides:none on file

Running Celery on AWS ECS Fargate works if workers and tasks are tuned: use stop_timeout=120s and minimum healthy percent 50 to keep capacity during deploys, enable late acks and reject_on_worker_lost=True, target a broker visibility_timeout=15m (aim tasks <15m, empirical 2–3m), set prefetch_multiplier=1 and remap SIGTERM to SIGQUIT for cold shutdown via billiard. Break long work with fan‑out or batching, use Redis locks and retries with exponential backoff and Flower for monitoring; repository examples show this yields continuous zero‑downtime deploys.

AI-written summary · about

  1. 0:00Intro
  2. 1:18Async background tasks
  3. 5:35AWS ECS Fargate - configuration
  4. 7:06AWS ECS Fargate - interruptions
  5. 7:48AWS ECS Fargate - continuous deployment
  6. 9:23Celery on AWS ECS - late task acknowledgement
  7. 10:15Celery on AWS ECS - visibility timeout
  8. 12:24Celery on AWS ECS - countdown
  9. 13:53Celery on AWS ECS - reject task on worker lose
  10. 16:38Celery on AWS ECS - prefetch multiplier
  11. 18:00Celery on AWS ECS - signal re-mapping
  12. 20:07Celery on AWS ECS - example configuration
  13. 26:43Tasks-batching
  14. 31:24Working example
~/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.