codesutras / celery-pool-asyncio-example

Celery Pool Asyncio minimal working example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

celery-pool-asyncio-example & celery redbeat schedule task exmaple

This repository contain a minimal working example of celery-pool-asyncio to work Celery pool to run coroutine tasks. Same code base can be use too for testing redbeat scheduler (Which is not supporting coroutine tasks at this moment).

Execute below commands to run this example code

To run celery worker

$ celery -A task worker -l debug -P celery_pool_asyncio:TaskPool

To run celery beat

$ celery beat -A task -l debug

Note: In order to run this sample code with Redbeat Scheduler, change scheduler configuration in config.py to redbeat.RedBeatScheduler

About

Celery Pool Asyncio minimal working example


Languages

Language:Python 100.0%