bug【celery】

ChannelPromise工作机制

Traceback (most recent call last):

File "/usr/local/lib/python3.10/dist-packages/kombu/utils/functional.py", line 32, in call

return self.value

AttributeError: 'ChannelPromise' object has no attribute 'value'. Did you mean: 'call'?

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/local/lib/python3.10/dist-packages/kombu/connection.py", line 472, in _reraise_as_library_errors

yield

File "/usr/local/lib/python3.10/dist-packages/kombu/connection.py", line 459, in _ensure_connection

return retry_over_time(

File "/usr/local/lib/python3.10/dist-packages/kombu/utils/functional.py", line 318, in retry_over_time

return fun(*args, **kwargs)

File "/usr/local/lib/python3.10/dist-packages/kombu/connection.py", line 938, in _connection_factory

self._connection = self._establish_connection()

File "/usr/local/lib/python3.10/dist-packages/kombu/connection.py", line 860, in _establish_connection

conn = self.transport.establish_connection()

File "/usr/local/lib/python3.10/dist-packages/kombu/transport/pyamqp.py", line 203, in establish_connection

conn.connect()

File "/usr/local/lib/python3.10/dist-packages/amqp/connection.py", line 324, in connect

self.transport.connect()

File "/usr/local/lib/python3.10/dist-packages/amqp/transport.py", line 132, in connect

self._connect(self.host, self.port, self.connect_timeout)

File "/usr/local/lib/python3.10/dist-packages/amqp/transport.py", line 187, in _connect

self.sock.connect(sa)

ConnectionRefusedError: [Errno 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "/usr/local/lib/python3.10/dist-packages/uvicorn/protocols/http/h11_impl.py", line 403, in run_asgi

result = await app( # type: ignore[func-returns-value]

File "/usr/local/lib/python3.10/dist-packages/uvicorn/middleware/proxy_headers.py", line 60, in call

return await self.app(scope, receive, send)

File "/usr/local/lib/python3.10/dist-packages/fastapi/applications.py", line 1134, in call

await super().call(scope, receive, send)

File "/usr/local/lib/python3.10/dist-packages/starlette/applications.py", line 113, in call

await self.middleware_stack(scope, receive, send)

File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 186, in call

raise exc

File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 164, in call

await self.app(scope, receive, _send)

File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/cors.py", line 93, in call

await self.simple_response(scope, receive, send, request_headers=headers)

File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/cors.py", line 144, in simple_response

await self.app(scope, receive, send)

File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py", line 63, in call

await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)

File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app

raise exc

File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 42, in wrapped_app

await app(scope, receive, sender)

File "/usr/local/lib/python3.10/dist-packages/fastapi/middleware/asyncexitstack.py", line 18, in call

await self.app(scope, receive, send)

File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 716, in call

await self.middleware_stack(scope, receive, send)

File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 736, in app

await route.handle(scope, receive, send)

File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 290, in handle

await self.app(scope, receive, send)

File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 124, in app

await wrap_app_handling_exceptions(app, request)(scope, receive, send)

File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app

raise exc

File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 42, in wrapped_app

await app(scope, receive, sender)

File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 110, in app

response = await f(request)

File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 390, in app

raw_response = await run_endpoint_function(

File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 289, in run_endpoint_function

return await dependant.call(**values)

File "/app/router/async_stt.py", line 114, in transcribe

process_document_task.apply_async(

File "/usr/local/lib/python3.10/dist-packages/celery/app/task.py", line 601, in apply_async

return app.send_task(

File "/usr/local/lib/python3.10/dist-packages/celery/app/base.py", line 930, in send_task

amqp.send_task_message(P, name, message, **options)

File "/usr/local/lib/python3.10/dist-packages/celery/app/amqp.py", line 523, in send_task_message

ret = producer.publish(

File "/usr/local/lib/python3.10/dist-packages/kombu/messaging.py", line 190, in publish

return _publish(

File "/usr/local/lib/python3.10/dist-packages/kombu/connection.py", line 556, in _ensured

return fun(*args, **kwargs)

File "/usr/local/lib/python3.10/dist-packages/kombu/messaging.py", line 200, in _publish

channel = self.channel

File "/usr/local/lib/python3.10/dist-packages/kombu/messaging.py", line 224, in _get_channel

channel = self._channel = channel()

File "/usr/local/lib/python3.10/dist-packages/kombu/utils/functional.py", line 34, in call

value = self.value = self.contract()

File "/usr/local/lib/python3.10/dist-packages/kombu/messaging.py", line 240, in <lambda>

channel = ChannelPromise(lambda: connection.default_channel)

File "/usr/local/lib/python3.10/dist-packages/kombu/connection.py", line 957, in default_channel

self._ensure_connection(**conn_opts)

File "/usr/local/lib/python3.10/dist-packages/kombu/connection.py", line 458, in _ensure_connection

with ctx():

File "/usr/lib/python3.10/contextlib.py", line 153, in exit

self.gen.throw(typ, value, traceback)

File "/usr/local/lib/python3.10/dist-packages/kombu/connection.py", line 476, in _reraise_as_library_errors

raise ConnectionError(str(exc)) from exc

kombu.exceptions.OperationalError: [Errno 111] Connection refused

相关推荐
2401_860494703 小时前
React Native鸿蒙跨平台开发:error SyntaxError:Unterminated string constant.解决bug错误
javascript·react native·react.js·ecmascript·bug
天才测试猿2 天前
快速定位bug,编写测试用例
自动化测试·软件测试·功能测试·测试工具·职场和发展·测试用例·bug
福大大架构师每日一题2 天前
PyTorch v2.9.1 发布:重要 Bug 修复与性能优化详解
人工智能·pytorch·bug
黑臂麒麟2 天前
Electron&OpenHarmony 跨平台实战开发(bug):npm 安装 Electron 依赖常见错误排查
electron·npm·bug·openharmony
CIb0la2 天前
Complete Bug Bounty tool List for free
linux·运维·bug
欧恩意2 天前
【Viusal Studio】关于增量链接机制
汇编·windows·bug
Austindatabases3 天前
SQLite 开发中的数据库开发规范 --如何提升业务系统性能避免基础BUG
数据库·oracle·sqlite·bug·数据库开发
万粉变现经纪人3 天前
如何解决 pip install 代理报错 407 Proxy Authentication Required 问题
windows·python·pycharm·beautifulsoup·bug·pandas·pip
爱尔兰极光3 天前
软件测试--BUG篇
bug·压力测试·测试
hadage2333 天前
windows alt + tab 切换窗口时会强制把我的中文键盘的中英文输入改为中文这个bug的曲线救国方式 da
bug