Code Monkey home page Code Monkey logo

yt_fastapi_celery_redis_flower_introduction's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

yt_fastapi_celery_redis_flower_introduction's Issues

docker-compose up not reading .env parameters

Hi thanks for the great tutorial!

In my docker-compose.yml, this would not work (https://youtu.be/mcX_4EvYka4?t=1067):

celery_worker:
    container_name: celery_worker
    build: ./main
    environment:
      - CELERY_BROKER_URL=${CELERY_BROKER_URL}
      - CELERY_RESULT_BACKEND=${CELERY_RESULT_BACKEND}
    command: celery -A celery_worker.celery worker --loglevel=info 
    volumes:
      - ./main/projects:/app
    depends_on:
      - redis
      - [...]

resulting in

-------------- celery@ed960d6ff0fe v5.2.3 (dawn-chorus)
celery_worker      | --- ***** ----- 
celery_worker      | -- ******* ---- Linux-5.10.76-linuxkit-aarch64-with-glibc2.31 2022-02-13 13:36:02
celery_worker      | - *** --- * --- 
celery_worker      | - ** ---------- [config]
celery_worker      | - ** ---------- .> app:         celery_worker:0xffffb6a28070
celery_worker      | - ** ---------- .> transport:   amqp://guest:**@localhost:5672//
celery_worker      | - ** ---------- .> results:     disabled://
celery_worker      | - *** --- * --- .> concurrency: 5 (prefork)
celery_worker      | -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
celery_worker      | --- ***** ----- 
celery_worker      |  -------------- [queues]
celery_worker      |                 .> celery           exchange=celery(direct) key=celery

However, removing the environment section will work:

celery_worker:
    container_name: celery_worker
    build: ./main
    command: celery -A celery_worker.celery worker --loglevel=info 
    volumes:
      - ./main/projects:/app
    depends_on:
      - redis
      - [...]

resulting in:

celery_worker      |  -------------- celery@f6ab652b725c v5.2.3 (dawn-chorus)
celery_worker      | --- ***** ----- 
celery_worker      | -- ******* ---- Linux-5.10.76-linuxkit-aarch64-with-glibc2.31 2022-02-13 13:44:25
celery_worker      | - *** --- * --- 
celery_worker      | - ** ---------- [config]
celery_worker      | - ** ---------- .> app:         celery_worker:0xffffa8d40070
celery_worker      | - ** ---------- .> transport:   redis://redis:6379/0
celery_worker      | - ** ---------- .> results:     redis://redis:6379/0
celery_worker      | - *** --- * --- .> concurrency: 5 (prefork)
celery_worker      | -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
celery_worker      | --- ***** ----- 
celery_worker      |  -------------- [queues]
celery_worker      |                 .> celery           exchange=celery(direct) key=celery

So it seems the values ${CELERY_BROKER_URL} and ${CELERY_RESULT_BACKEND} won't be populated. Any idea why?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.