A small, independent Celery example retained from the project's original arithmetic-task demo. It uses Redis for both the broker and result backend; Celery Beat schedules addition, multiplication, and division tasks every ten seconds.
Install the example's dependencies with Python 3.13+ and start Redis:
python -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
redis-serverStart the worker and Beat in separate terminals:
celery --app celery_app.celery worker --pool eventlet --concurrency 4 --loglevel info
celery --app celery_app.celery beat --loglevel infoOptionally inspect task activity with Flower:
celery --broker=redis://127.0.0.1:6379/0 flower --port=5555docker compose up --buildThis starts Redis, a worker, Beat, and Flower. Open Flower at
http://127.0.0.1:5555.