0% found this document useful (0 votes)
9 views1 page

Celery

This document provides instructions for installing and running Redis and Celery on both Windows and Linux for a Django REST Framework application. It includes commands for starting Redis, running Celery workers, and managing periodic tasks with Celery Beat. Additionally, it outlines how to verify Celery status and check registered and scheduled tasks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Celery

This document provides instructions for installing and running Redis and Celery on both Windows and Linux for a Django REST Framework application. It includes commands for starting Redis, running Celery workers, and managing periodic tasks with Celery Beat. Additionally, it outlines how to verify Celery status and check registered and scheduled tasks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Running Celery with Redis in Windows and Linux (Django REST Framework)

Install and Start Redis


Windows
• Start Redis:
memurai.exe
OR (if using Docker)
docker run -d -p 6379:6379 redis
Linux
• Install Redis:
sudo apt update
sudo apt install redis
• Start Redis:
sudo systemctl start redis
Running Celery
Windows
1. Start Redis:
memurai.exe
2. Run Celery worker:
celery -A your_project worker --pool=solo --loglevel=info
Linux
1. Start Redis:
sudo systemctl start redis
2. Run Celery worker:
celery -A your_project worker --loglevel=info
Running Celery Beat (for periodic tasks)
celery -A your_project beat --loglevel=info
Verifying Celery Status
celery -A your_project status
Check the Registered Task
celery -A your_project inspect registered
Check the Scheduled Task
celery -A your_project inspect scheduled
create unique Name for the worker
celery -A your_project worker –loglevel=info -n your_worker_name

You might also like