Skip to content

dori-dev/celery-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Sample

Sample of using Celery in python.

Celery Worker

celery -A tasks worker -l INFO

Run Tasks

python tasks.py

Management GUI for Celery

celery flower -A tasks --broker=amqp://guest:guest@localhost:5672//

Celery Beat

celery -A tasks beat

Use Another Pools

celery -A tasks worker -l INFO --pool=solo --concurrency=1
celery -A tasks worker -l INFO --pool=eventlet --concurrency=500

perfork => CPU-Bound
solo => Whole CPU
eventlet => IO-Bound

Links

Download Source Code: Click Here

My Github Account: Click Here