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

When attempting to start a Celery worker, I'm getting a ModuleNotFoundError at startup and Celery

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744398671a4572273.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信