-
Notifications
You must be signed in to change notification settings - Fork 24
BROKER_URL !== CELERY_BROKER_URL #8
Comments
|
Thanks for the clarification - there still needs to be some mention that I would think this is a pretty common use-case - set To quote immunda:
|
I have encountered the same problem, how to set BROKER_URL to make it valid, I want to use custom broker url, not use default CELERY_BROKER_URL, |
@leimbag how are you setting $ docker run -v /path/to/my/celeryconfig.py:/home/user/celeryconfig.py [more docker args...] celery Or if you just want to change $ docker run -e CELERY_BROKER_URL=amqp://my-custom-host celery |
I was accidentally using CELERY_BROKER_URL as environment variable and using broker_url in the celery_config file. Thanks to this post I found the magic that was changing silently the variable! |
I was going through old PRs, and ended up filing #12 as a result -- if you've got time, please go check my assumptions before we deprecate this image entirely. ❤️ 🙏 |
See docker-library/docs#880 for more details of the deprecation of this image. |
Thanks for all the great work making this image available - posting this in case anyone else has this issue.
The README for this image doesn't make it clear that
BROKER_URL
is deprecated in favour ofCELERY_BROKER_URL
.The Celery configuration documentation makes no mention of
CELERY_BROKER_URL
- all examples useBROKER_URL
.If you rename your RabbitMQ service to anything but "rabbit" in your
docker-compose.yml
, and try (according to the configuration docs) to setBROKER_URL
accordingly, this image won't work.I will cross-post this issue on the Celery documentation site.
The text was updated successfully, but these errors were encountered: