Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Celery - Distributed task queue system

Celery - Distributed task queue system

Mushfiq-E Mahabub

November 28, 2014
Tweet

More Decks by Mushfiq-E Mahabub

Other Decks in Programming

Transcript

  1. What? “Celery is a simple, flexible and reliable distributed system

    to process vast amounts of messages, while providing operations with the tools required to maintain such a system.” Official Celery Docs. ! “Asynchronous task management system” 3
  2. Tasks • Tasks can be created by any callable •

    do something (?) when a worker receives the message • do something (?) when it is called 5
  3. When? • For background processing • Distributed computing • Eg.

    Bulk email sending • Eg. Content aggregation • Eg. Long running data processing jobs • Eg. Periodic task 9
  4. Common Issues • How to lock? • How to have

    results? • Pythonic Cron? • How to distribute? • How to execute dependent task? 14