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',)
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?
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
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)"
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