if your addition task is not shown in admin page, add these in the root __init__.py file from __future__ import absolute_import , unicode_literals from .celery import app as celery_app __all__=('celery_app',)
Is there anyway to send an email base on a datetime field?I have model that has a Datetime field. I want to send an email 2 days before the date of that field. I can't find anything , celery , celery beat ,crontab can't help. I'm getting mad
Great video !! I am having a little issue though. While adding periodic task in Django Administration page, only one task is coming is Task(registered) option. What can be the issue ?
Hmm I asked around, no-one seems to want to commit to this one. Hard to diagnose without error code or looking at this one. This set of tools - really so many things can go wrong. Keep trying step by step you will get there
@@veryacademy Yes, I might have missed something or there may be some version issue, I will try again. Anyway keep up the great work man, This 6 video tutorial series helped me a lot today.
I have the same issue, I have this in the celery output: [tasks] . add . bkup . proj.celery.debug_task . send_review_email_task But in the django admin panel, I can only choose the last one "send_review_email_task".
Does flower display the tasks results or just the tasks ? I see some repeated rows but with different statuses. Also is there a way to use flower or any other tool to check the celery queue as tasks are put in and out ?
Hi Harry, its just one of those things - everything needs to align just right. Sorry I cant be of anymore assistance at this point. Does the sample code work?
flower -A core --port=5555 is not working for me facing "ImportError: cannot import name 'Command' from 'celery.bin.base' (....python3.8/site-packages/celery/bin/base.py)"
I am getting this response anytime I try the "flower -A core --port=5555 command: flower" : The term 'flower' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + flower -A core --port=5555 + ~~~~~~ + CategoryInfo : ObjectNotFound: (flower:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException I have tried running VS code as administrator, uninstalling flower and reinstalling and no difference
This command does not work for me I am working on windows and this command results in error flower -A core --port=5555 Error = Flower doesn't recognized as internal or external command. Then I tried --> celery flower --port=5566 And getting this error: kombu.exceptions.OperationalError: timed out Any help would be really appreciated. Thank you
you don't have even idea how awesome u r.. thankyou very much for existing.. thankyou very much for uploading this.. it literally saved my life ...
In under an hour, you taught me how to automate my programming. Subscribed + thank you so much!
Glad it helped! 👍
Excellent video. thanks for explaining in such a simple way
Thank you!
Your lessons are still helpful! Thank you!
hi...tnx for toturial series....please upload new videos
Nice job, I would love it if you could do a video for deploying to railway using Django, celery, celery beat and redis
Very good explanation.
Glad it was helpful!
Thank you , very helpful tutorial video.
Glad it was helpful! Thank you!
Thanks. Keep up good work.
Thanks, will do!
Excellent video!
Awesome content, thank you!
Glad you liked it! 👍
amazing video as always
Thanks again!
amazing content
Thanks Sir, Very Helped :like:
You are welcome
Thank you for the video. Could you please let me know how to run the celery worker and django celery beat when the project starts?
are tasks in "CELERY_BEAT_SCHEDULE" equivalent to tasks in admin's page "Periodic tasks"?
hey. Thanks, For this video, can we use celery to build an activity stream on our website with Celery
Thank you a lot !)
You are welcome!
Thanks you are amazing
Thank you too! 👍
if your addition task is not shown in admin page, add these in the root __init__.py file
from __future__ import absolute_import , unicode_literals
from .celery import app as celery_app
__all__=('celery_app',)
Thanks for this
Thanks bro...😍
@@ajaysudhakaran9010 you are a life saver
COOL!!! I try this course and the task not found, and now clear after adding this!
many thanks!!!
Is there anyway to send an email base on a datetime field?I have model that has a Datetime field. I want to send an email 2 days before the date of that field. I can't find anything , celery , celery beat ,crontab can't help. I'm getting mad
Great video !! I am having a little issue though. While adding periodic task in Django Administration page, only one task is coming is Task(registered) option. What can be the issue ?
Strange one. Good that at least 1 task is showing suggesting that part of the system is ok. Such a tricky one to suggest. I will have a think
Hmm I asked around, no-one seems to want to commit to this one. Hard to diagnose without error code or looking at this one. This set of tools - really so many things can go wrong. Keep trying step by step you will get there
@@veryacademy In cmd line all tasks are showing under registered task but can't find those in UI. Indeed a strange one.
@@veryacademy Yes, I might have missed something or there may be some version issue, I will try again. Anyway keep up the great work man, This 6 video tutorial series helped me a lot today.
I have the same issue, I have this in the celery output:
[tasks]
. add
. bkup
. proj.celery.debug_task
. send_review_email_task
But in the django admin panel, I can only choose the last one "send_review_email_task".
Does flower display the tasks results or just the tasks ? I see some repeated rows but with different statuses. Also is there a way to use flower or any other tool to check the celery queue as tasks are put in and out ?
If we are scheduling sending emails tasks then what should be the format of the args when we pass them is it list or Dict?
excellent videos.... did you stopped the celery series also I'm not seeing the playlist. could you please make a playlist
Hi, I do have a playlist - ua-cam.com/play/PLOLrQ9Pn6caz-6WpcBYxV84g9gwptoN20.html I will come back to it bigger and better.
add task is not showing as register task why only send mail is showing?
Excellent video. What do you think if we use celery beat + redis ?
Hello Budi, I prefer working with Redis, so yeah give it a go.
My tasks are not showing up as registered im not sure why pretty sure I followed correctly the email one is showing up the rest are not
Hi Harry, its just one of those things - everything needs to align just right. Sorry I cant be of anymore assistance at this point. Does the sample code work?
@@veryacademy its fixed I saw in the next video that I needed to add something to the proj's init file I dont know how i missed that : {
Can we use this for sending emails every 24 hours for example
yeah sure you could set that up
flower -A core --port=5555
is not working for me facing "ImportError: cannot import name 'Command' from 'celery.bin.base' (....python3.8/site-packages/celery/bin/base.py)"
You might be using celery 5. Try uninstalling that and install celery 4.4.7. This worked for me.
you are correct. that was the issue
Everything working now?
Yes
@@rithikraj9664 are there any other steps when using docker, as I have changed to celery==4.4.7 but it hasn't resolved the error
is it possible to do this in flask?
medium.com/@frassetto.stefano/flask-celery-howto-d106958a15fe
@@veryacademy Thankyou for the quick reply, appreciated 👍
great!
When I schedule tasks with crontab it doesn't work but without it works, what is my error?
Pls how do I deploy it on namecheap cpanel....can't install rabbitmq
Hello Ude, I would first ask namecheap if that is even possible.
@@veryacademy but using a docker or cloud will work?
I am getting this response anytime I try the "flower -A core --port=5555 command: flower" :
The term 'flower' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ flower -A core --port=5555
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (flower:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I have tried running VS code as administrator, uninstalling flower and reinstalling and no difference
did u able to fix that??
Flower command didn't worked for me, celery flower --port=5566 (this one worked)
y did u used this, did u get flower not recognized error??
can you send commands.txt file
I don't have it - is it not in the code repository?
💖
👍
This is what I call gold...
👍
This command does not work for me I am working on windows and this command results in error flower -A core --port=5555
Error = Flower doesn't recognized as internal or external command.
Then I tried --> celery flower --port=5566
And getting this error:
kombu.exceptions.OperationalError: timed out
Any help would be really appreciated.
Thank you
try "celery -A your_project_root_folder flower --loglevel=info" instead