gpt4 book ai didi

redis - celery 不尊重 BROKER_URL

转载 作者:IT王子 更新时间:2023-10-29 06:06:54 24 4
gpt4 key购买 nike

我尝试在 stackoverflow 和 google 上搜索相关问题,但没有找到可以解决我的问题的东西。

我在/etc/default/celeryd 配置中将 BROKER_URL 设置为 redis。BROKER_URL="redis://localhost:6379"

但是当我启动/etc/init.d/celeryd start

它说:“错误/MainProcess] 消费者:无法连接到 amqp://guest@127.0.0.1:5672//:”

我还在文档页面上看到了有关 celeryconfig.py 的信息。我不明白为什么我应该有两个配置文件?/etc/default/celeryd 用于配置。

最佳答案

如果您将命名空间设置为 app.config_from_object("django.conf:settings", namespace="CELERY")

引用:http://docs.celeryproject.org/en/latest/history/whatsnew-4.0.html#latentcall-django-admonition

关于redis - celery 不尊重 BROKER_URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19462521/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com