This repository contains some sample code to investigate the overhead of Celery. To be specific, it tries to answer the following questions:
- What is the overhead of scheduling Celery tasks? Where does this depend on?
- Does Celery prioritization work, and how does it work?
This project can be installed with the following command:
poetry install
Celery can be started with the following command:
# Make sure the poetry environment is active
$(which celery) -A celery_test.app:app worker -Q tasks --loglevel info
Tests are made using pytest
.
They are made to show several usages on how celery can be used.
Also, tests are designed to answer the questions above.