Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1019 Bytes

File metadata and controls

24 lines (19 loc) · 1019 Bytes

Sample Celery Project

Clone it. Have celery and sqlite installed. Run test.py.

$python test.py
Success: 3
Failure:
- state: RETRY
- ready: False
- get: >> got exception: EngineTaskError Failed
Zero: Done Normally
Five: Done Rushed!
$

Demonstrates

Things I wish I had known when I first started using celery...

  1. Minimal startup of celery (no rabbitmq)
  2. Starting celery from inside my main app process
  3. Setting up your project with a Dedicated Module
  4. Keeping celery code separate from your logic with custom tasks
  5. Gently interrupting long-running tasks using soft limits
  6. Capturing errors and routing them for special/central handling