最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - Why am I getting a ModuleNotFoundError, mentioning the prefix of my broker's DNS, when intializing my Celery wo

programmeradmin2浏览0评论

When attempting to start a Celery worker, I'm getting a ModuleNotFoundError at startup and Celery quits : [2025-03-17 17:16:42,405: CRITICAL/MainProcess] Unrecoverable error: ModuleNotFoundError("No module named 'a-redis-server'").

The odd thing - the module it was looking for was (example - not the actual value) a-redis-server, which matches the prefixed DNS for broker and backend (i.e. the value was a-redis-server.abcdef.0001.use1.cache.amazonaws:6379/0).

When attempting to start a Celery worker, I'm getting a ModuleNotFoundError at startup and Celery quits : [2025-03-17 17:16:42,405: CRITICAL/MainProcess] Unrecoverable error: ModuleNotFoundError("No module named 'a-redis-server'").

The odd thing - the module it was looking for was (example - not the actual value) a-redis-server, which matches the prefixed DNS for broker and backend (i.e. the value was a-redis-server.abcdef.0001.use1.cache.amazonaws:6379/0).

Share Improve this question asked Mar 20 at 15:37 p5k6p5k6 1211 silver badge9 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

The issue was fairly simple: I fot to set the protocol in the broker and backend, i.e. redis://a-redis-server.abcdef.0001.use1.cache.amazonaws:6379/0. Seems a bit obvious in retrospect lol.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论