Welcome to the Learn Django - Celery Series. This tutorial stream is dedicated to exploring the use of celery within Django. We start by assuming you might be new to celery and development in general and hope that by the end of this tutorial you would have deployed Celery and a message broker with a Django application.
Commands Used
################
# Install celery
pip install celery
# Install RabbitMQ (Ubuntu Linux 20.04LTS)
sudo apt-get install rabbitmq-server
# Run Celery
celery -A NAMEOFINSTANCE worker --loglevel=info
we used
celery -A proj worker --loglevel=info
(If on Windows) celery -A proj worker -l info --pool=solo
#Run Task
py manage.py shell
from app1.tasks import add
add.apply(2,2)
00:00 Introduction
06:55 Install/Start Django in Linux Ubuntu (For new users)
09:28 Pip install celery
09:39 apt-get install rabbitmq-server
11:22 Build new celery instance
14:04 Create new task
15:27 Start Celery instance
17:26 Run task with Celery
Code Repository
https://github.com/veryacademy/YT-Django-Celery-Series-Intro-Install-Run-Task
Like all tutorials here, please use the timeline in the description to skip ahead to different section of this tutorial. I start this series by providing context, what, why and indeed where you might use this technology within your projects. We then install C and R on a Linux environment – please let me know if you would like a Windows Tutorial. Next, we create a Django application and integrate prepare to use the application with Celery And finally, we build some very simple task for Celery to execute. This tutorial will serve as a baseline build for future tutorials in this series
SUBSCRIBE to get more free tutorials, courses and code snippets!
http://www.youtube.com/channel/UC1mxuk7tuQT2D0qTMgKji3w?sub_confirmation=1
Follow us on Facebook
https://www.facebook.com/Veryacademycom-113232103670580/
Follow use on Twitter:
https://twitter.com/VeryAcademy