Learn Django Celery - Intro to scheduling Tasks - Part 3

Поділитися
Вставка
  • Опубліковано 4 лют 2025

КОМЕНТАРІ • 82

  • @simarjitkaur2864
    @simarjitkaur2864 2 роки тому +1

    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 ...

  • @jsr7599
    @jsr7599 3 роки тому +5

    In under an hour, you taught me how to automate my programming. Subscribed + thank you so much!

  • @shreymittal3907
    @shreymittal3907 4 роки тому +6

    Excellent video. thanks for explaining in such a simple way

  • @Jumalungma-ls8rz
    @Jumalungma-ls8rz Рік тому

    Your lessons are still helpful! Thank you!

  • @amirhosseinrahimi1448
    @amirhosseinrahimi1448 2 роки тому

    hi...tnx for toturial series....please upload new videos

  • @specialnwachukwu7031
    @specialnwachukwu7031 Рік тому

    Nice job, I would love it if you could do a video for deploying to railway using Django, celery, celery beat and redis

  • @rakeshpk4991
    @rakeshpk4991 3 роки тому +1

    Very good explanation.

  • @siranjeevik5016
    @siranjeevik5016 4 роки тому +1

    Thank you , very helpful tutorial video.

    • @veryacademy
      @veryacademy  4 роки тому

      Glad it was helpful! Thank you!

  • @vladimirbondarenko3281
    @vladimirbondarenko3281 4 роки тому +1

    Thanks. Keep up good work.

  • @alexandergarzo9415
    @alexandergarzo9415 2 роки тому

    Excellent video!

  •  3 роки тому +2

    Awesome content, thank you!

  • @professionalfacepuncher8361
    @professionalfacepuncher8361 4 роки тому +1

    amazing video as always

  • @hernansaa
    @hernansaa Рік тому

    amazing content

  • @bomaanjang6580
    @bomaanjang6580 3 роки тому +1

    Thanks Sir, Very Helped :like:

  • @rhawool
    @rhawool 2 роки тому

    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?

  • @valett5229
    @valett5229 10 місяців тому

    are tasks in "CELERY_BEAT_SCHEDULE" equivalent to tasks in admin's page "Periodic tasks"?

  • @johnnwabuforudemezue1108
    @johnnwabuforudemezue1108 2 роки тому

    hey. Thanks, For this video, can we use celery to build an activity stream on our website with Celery

  • @abdullokhalimov2012
    @abdullokhalimov2012 3 роки тому +1

    Thank you a lot !)

  • @0transcendence971
    @0transcendence971 4 роки тому +1

    Thanks you are amazing

  • @sabarinathjv4511
    @sabarinathjv4511 3 роки тому +7

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

    • @veryacademy
      @veryacademy  3 роки тому +1

      Thanks for this

    • @ajaysudhakaran9010
      @ajaysudhakaran9010 3 роки тому

      Thanks bro...😍

    • @taqihussain4595
      @taqihussain4595 2 роки тому +1

      @@ajaysudhakaran9010 you are a life saver

    • @adhy612000151
      @adhy612000151 28 днів тому

      COOL!!! I try this course and the task not found, and now clear after adding this!
      many thanks!!!

  • @XeUs87
    @XeUs87 3 роки тому

    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

  • @rithikraj9664
    @rithikraj9664 4 роки тому +5

    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 ?

    • @veryacademy
      @veryacademy  4 роки тому

      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

    • @veryacademy
      @veryacademy  4 роки тому +1

      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

    • @rithikraj9664
      @rithikraj9664 4 роки тому

      @@veryacademy In cmd line all tasks are showing under registered task but can't find those in UI. Indeed a strange one.

    • @rithikraj9664
      @rithikraj9664 4 роки тому

      @@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.

    • @juanvizcaya9487
      @juanvizcaya9487 4 роки тому

      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".

  • @angelleal3005
    @angelleal3005 Рік тому

    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 ?

  • @sushantnerkar4028
    @sushantnerkar4028 2 роки тому

    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?

  • @k.m.jiaulislamjibon1443
    @k.m.jiaulislamjibon1443 4 роки тому +1

    excellent videos.... did you stopped the celery series also I'm not seeing the playlist. could you please make a playlist

    • @veryacademy
      @veryacademy  4 роки тому +1

      Hi, I do have a playlist - ua-cam.com/play/PLOLrQ9Pn6caz-6WpcBYxV84g9gwptoN20.html I will come back to it bigger and better.

  • @practicalbong1497
    @practicalbong1497 2 роки тому

    add task is not showing as register task why only send mail is showing?

  • @budi0580
    @budi0580 4 роки тому +1

    Excellent video. What do you think if we use celery beat + redis ?

    • @veryacademy
      @veryacademy  4 роки тому +1

      Hello Budi, I prefer working with Redis, so yeah give it a go.

  • @harryodendaal345
    @harryodendaal345 4 роки тому +1

    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

    • @veryacademy
      @veryacademy  4 роки тому

      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?

    • @harryodendaal345
      @harryodendaal345 4 роки тому

      @@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 : {

  • @mohamedelmeziani4012
    @mohamedelmeziani4012 3 роки тому +1

    Can we use this for sending emails every 24 hours for example

    • @veryacademy
      @veryacademy  3 роки тому +1

      yeah sure you could set that up

  • @tareqmahmud7760
    @tareqmahmud7760 4 роки тому +1

    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)"

    • @rithikraj9664
      @rithikraj9664 4 роки тому +1

      You might be using celery 5. Try uninstalling that and install celery 4.4.7. This worked for me.

    • @tareqmahmud7760
      @tareqmahmud7760 4 роки тому +1

      you are correct. that was the issue

    • @veryacademy
      @veryacademy  4 роки тому

      Everything working now?

    • @tareqmahmud7760
      @tareqmahmud7760 4 роки тому

      Yes

    • @supersecretname3686
      @supersecretname3686 4 роки тому

      @@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

  • @RahulChauhanart
    @RahulChauhanart 3 роки тому +1

    is it possible to do this in flask?

    • @veryacademy
      @veryacademy  3 роки тому

      medium.com/@frassetto.stefano/flask-celery-howto-d106958a15fe

    • @RahulChauhanart
      @RahulChauhanart 3 роки тому

      @@veryacademy Thankyou for the quick reply, appreciated 👍

  • @abuajmalmajidponnethabu2858
    @abuajmalmajidponnethabu2858 3 роки тому

    great!

  • @angeldavid4514
    @angeldavid4514 4 роки тому

    When I schedule tasks with crontab it doesn't work but without it works, what is my error?

  • @udechekwube9929
    @udechekwube9929 4 роки тому +1

    Pls how do I deploy it on namecheap cpanel....can't install rabbitmq

    • @veryacademy
      @veryacademy  4 роки тому

      Hello Ude, I would first ask namecheap if that is even possible.

    • @udechekwube9929
      @udechekwube9929 4 роки тому

      @@veryacademy but using a docker or cloud will work?

  • @Daniel-eg8kz
    @Daniel-eg8kz Рік тому

    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

  • @mayureshsatao
    @mayureshsatao 2 роки тому

    Flower command didn't worked for me, celery flower --port=5566 (this one worked)

    • @AmithTalentPlace
      @AmithTalentPlace 9 місяців тому

      y did u used this, did u get flower not recognized error??

  • @MoviesRecappS-uy7zt
    @MoviesRecappS-uy7zt 4 роки тому +1

    can you send commands.txt file

    • @veryacademy
      @veryacademy  4 роки тому

      I don't have it - is it not in the code repository?

  • @odocic
    @odocic 3 роки тому

    💖

  • @joshuahadap2373
    @joshuahadap2373 3 роки тому

    This is what I call gold...

  • @yasirkhan1278
    @yasirkhan1278 2 роки тому

    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

    • @yulianrudenko9926
      @yulianrudenko9926 2 роки тому

      try "celery -A your_project_root_folder flower --loglevel=info" instead