Skip to content

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

Notifications You must be signed in to change notification settings

naterh/example_celery_project

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%