消费者无法连接到amqp芹菜

时间:2020-05-13 16:55:25

标签: python rabbitmq celery django-celery consumer

在生产服务器中,我在celery控制台中收到以下从未发生过的错误。我在其他帖子中发现了相同的问题,他们说要提供有效的URL,但我在settings.py中给出的URL非常有效。

Rabbitmq也处于活动状态。

from ctypes import *
import ctypes
import pathlib
so_file =  "C://Users//asus2//Box Sync//Box Sync//PLOM With Constraints//Code//library.dll"
c_lib = ctypes.windll.LoadLibrary(so_file)

请提出一个解决方法,因为我从很长一段时间开始就坚持使用它。

我也尝试过几次芹菜

1 个答案:

答案 0 :(得分:0)

问题已解决。

原来,URL名称解析 site_name 在服务器中未连接。我将其更改为localhost,现在可以正常工作。

谢谢