A quick guide on how to use celery to accomplish async task in application.
How it works for celery-based async tasks
- Decorated function as celery task
- Broker (e.g. rabbitmq, redis, and etc.) to queue up the task
- Celery worker on the background to actually execute the task
Define a task
Invoke the task