这是我 settings.py 的摘录:
BROKER_URL = "amqp://guest@localhost:6000//"
后
python manage.py celeryd
芹菜启动良好,显示:
-------------- celery@karol-toshiba v3.0.12 (Chiastic Slide)
---- **** -----
--- * *** * -- [Configuration]
-- * - **** --- . broker: amqp://guest@localhost:5672//
- ** ---------- . app: default:0xb6d01acc (.default.Loader)
- ** ---------- . concurrency: 2 (processes)
- ** ---------- . events: OFF (enable -E to monitor this worker)
- ** ----------
- *** --- * --- [Queues]
-- ******* ---- . celery: exchange:celery(direct) binding:celery
--- ***** -----
如何强制它使用指定的"BROKER_URL"设置?最终,我希望它使用"django://"后端 url。任何帮助,不胜感激。
确保您没有使用BROKER_TRANSPORT、BROKER_PORT或BROKER_BACKEND设置。BROKER_URL应该就足够了。