Integrating Celery in Django

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 พ.ย. 2024

ความคิดเห็น • 34

  • @CloudWithDjango
    @CloudWithDjango  2 ปีที่แล้ว +2

    Start a celery instance:
    celery -A worker -l INFO --without-gossip --without-mingle --without-heartbeat -Ofair --pool=solo

  • @राजmodgi
    @राजmodgi ปีที่แล้ว +2

    Nice video.
    Just 1 advice, if a person is viewing this topic, it means he/she already knows how to setup a basic django project. Yes? So instead you can directly jump to the point.

    • @CloudWithDjango
      @CloudWithDjango  ปีที่แล้ว +1

      Hi Karan,
      Thank you for your feedback. I'm glad that you enjoyed the video.
      Some people enjoy structure and to follow-along irrespective of whether they understand an easy or hard topic. And yes you are correct, there are those that want to get straight to the point. This is why I added in chapters for the video to cater for everyone.

  • @ZFCaio
    @ZFCaio หลายเดือนก่อน

    I need a few weeks to finish an essay.
    After that, I plan to binge-watch your videos, and also your course from Udemy
    I MUST get good with Django
    I am tired of being just a Frontend

    • @CloudWithDjango
      @CloudWithDjango  หลายเดือนก่อน

      Good luck with the essay! Thank you so much for all the support!! Yes, Django is definitely a valuable framework to know if you want to add to your front-end skills!

  • @Andy009Duncan
    @Andy009Duncan ปีที่แล้ว +1

    Great video. I'd like to put everything onto AWS. I've already done that with a basic Django web site. But how do I put a Celery server on AWS? And how do I put a Redis message broker onto AWS? I think if you added both those things to your series on Django and Celery, that would really be a useful addition.

    • @CloudWithDjango
      @CloudWithDjango  ปีที่แล้ว +1

      Hi Andy,
      Thank you for reaching out and for your feedback. I appreciate it!
      Regarding your questions. Here is a general guideline to help you:
      To put a Celery server and Redis message broker on AWS, you can follow these general steps:
      Launch an Amazon Elastic Compute Cloud (EC2) instance: This will serve as the server for your Celery and Redis setup.
      Install Celery and Redis: SSH into your EC2 instance and install Celery and Redis using your preferred package manager.
      Configure Celery: Create a Celery configuration file that defines your Celery app, including the broker URL (Redis) and result backend (e.g., RabbitMQ, Amazon SQS).
      Configure Redis: Edit the Redis configuration file to allow external connections and set up any necessary authentication.
      Start the Celery worker: Start a Celery worker process on your EC2 instance, specifying the app and concurrency settings.
      Test the setup: Send a test task to the Celery worker and ensure it completes successfully.
      Configure and start Celery beat: If you need periodic tasks, configure and start Celery beat.
      Secure your setup: Ensure that your Celery and Redis setup is secure by following AWS best practices.
      That's a very good suggestion, perhaps if I have time, I will make a video on that. Thank you.

    • @Andy009Duncan
      @Andy009Duncan ปีที่แล้ว

      @@CloudWithDjango Thank you for the response. As with all things on AWS, that's quite a 'series of events' to negotiate, without getting lost along the way, but I'll give it a go! :-)

    • @CloudWithDjango
      @CloudWithDjango  ปีที่แล้ว +1

      My pleasure, Andy!
      Yes, unfortunately, it's quite a process and rather intense in regards to the necessary steps. There isn't much leeway around that. I would suggest that you take your time each step of the way and go from there.
      All the best!

  • @caglargulucan
    @caglargulucan ปีที่แล้ว +1

    You have a very clear way of explaining. It's the simplest thing I've seen so far. I hope more videos like this will come. I want to get some advice from you. How can I reach you?

    • @CloudWithDjango
      @CloudWithDjango  ปีที่แล้ว +1

      Thank you, I appreciate your kind feedback.
      Yes, sure! You are more than welcome to sign-up for my 'coding mentorship/consultant' program, at the following link:
      www.cloudwithdjango.com/coaching/
      Please bear in mind that I do charge a fee for this.

  • @DirtySouth33T
    @DirtySouth33T ปีที่แล้ว

    Thank you for the video super helpful, I am running a small application on AWS Fargate its using angular for frontend and django for backend. right now I have 2 containers when i introduce celery does that mean i need a new container for the worker? i think that part is confusing me on how I need to accomplish this. thanks again all great videos

  • @ahmadumar9387
    @ahmadumar9387 2 ปีที่แล้ว +1

    the weather where you are is partly cloudy (on screen, below left) , is using Django the reason for it?.... hmm.... suspicion

    • @CloudWithDjango
      @CloudWithDjango  2 ปีที่แล้ว +3

      Hahahaha... It's definitely because of Django!

  • @youtalky_com
    @youtalky_com ปีที่แล้ว

    Awesome tutorials, great job!

    • @CloudWithDjango
      @CloudWithDjango  ปีที่แล้ว

      Thank you so much! Of course, it's a pleasure.

  • @tusharniras
    @tusharniras 9 หลายเดือนก่อน

    Thank you for such an great video!!

    • @CloudWithDjango
      @CloudWithDjango  9 หลายเดือนก่อน

      My pleasure! Thank you for taking the time to watch it! :)

  • @kishorereddy9453
    @kishorereddy9453 ปีที่แล้ว

    Can you pls make one video how to add celery and redis on AWS along with django project?? There are very shoddy resources out there.

  • @fastcoding2180
    @fastcoding2180 ปีที่แล้ว

    I have a problem connecting to redis server provided by railway. I have a configuraion with django and redis under docker. With redis running into docker it works fine but If I add railway redis url it connect, receive tasks inside redis but don't execute them! What could be the problem?

    • @codeX-th7cq
      @codeX-th7cq 6 หลายเดือนก่อน

      eecution is the problem of celery

  • @mehranahmed3612
    @mehranahmed3612 หลายเดือนก่อน

    Is this enough for a person who's staring to incorporate celery with Django or one must get in more depth

    • @CloudWithDjango
      @CloudWithDjango  หลายเดือนก่อน

      Hi. I'd say that it can be equal to both

  • @berkefekeskin9172
    @berkefekeskin9172 ปีที่แล้ว

    Thanks dude perfect video, please keep goin!!!

    • @CloudWithDjango
      @CloudWithDjango  ปีที่แล้ว

      I appreciate the feedback, thank you! :)
      It is a pleasure!

  • @johnnwabuforudemezue1108
    @johnnwabuforudemezue1108 ปีที่แล้ว

    Can we use celery to build activity stream

    • @CloudWithDjango
      @CloudWithDjango  ปีที่แล้ว

      Hi,
      Yes, it should be possible to do so with Celery.

  • @jondebosco7478
    @jondebosco7478 9 หลายเดือนก่อน

    Tnk u but could u pls implement celery beat redis on AWS EC2?

    • @CloudWithDjango
      @CloudWithDjango  9 หลายเดือนก่อน

      Thank you for the suggestion!

  • @KrishnaManohar8021
    @KrishnaManohar8021 2 ปีที่แล้ว

    🥳

  • @Coden69
    @Coden69 2 ปีที่แล้ว

    Woowww thank you very much