Quick Celery Beat Test¶
One-Line Test Commands¶
# Django management command (recommended)
python manage.py test_celery_beat
# Standalone script
python test_beat_infrastructure.py
# Docker
docker compose exec api python manage.py test_celery_beat
Watch it work (3 terminals)¶
Terminal 1 - Run the test:
Terminal 2 - Watch beat scheduler:
Terminal 3 - Watch worker:
What to expect in 3 minutes¶
Beat logs:
Worker logs:
Received task: tickets.task.send_show_reminder
Order with id 999999 does not exist ← This is SUCCESS!
Cleanup¶
Full docs: See CELERY_BEAT_DEBUGGING.md