如何在heroku中监控celery日志

问题描述 投票:0回答:0

我想从 Heroku 中的应用程序监控 celery 日志。我做了一些研究并发现了几个repos部署了一个新的heroku应用程序,该应用程序使用flower来监控。

问题: 我按照这些说明向 heroku 部署了一个新应用程序,但收到此错误消息:

2023-08-03T11:09:17.312149+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.11/site-packages/tornado/web.py", line 88, in <module>
2023-08-03T11:09:17.312150+00:00 app[web.1]:     from tornado import httputil
2023-08-03T11:09:17.312150+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.11/site-packages/tornado/httputil.py", line 107, in <module>
2023-08-03T11:09:17.312151+00:00 app[web.1]:     class HTTPHeaders(collections.MutableMapping):
2023-08-03T11:09:17.312151+00:00 app[web.1]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
2023-08-03T11:09:17.312151+00:00 app[web.1]: AttributeError: module 'collections' has no attribute 'MutableMapping'
2023-08-03T11:09:17.436513+00:00 heroku[web.1]: Process exited with status 1
2023-08-03T11:09:17.458578+00:00 heroku[web.1]: State changed from starting to crashed
2023-08-03T11:11:21.923503+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=celery-logger-4bd8f3ddc739.herokuapp.com request_id=50c72c4a-c22e-4801-8b4b-b7ec1eeaf3f2 fwd="86.14.252.189" dyno= connect= service= status=503 bytes= protocol=https
2023-08-03T11:11:23.115128+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=celery-logger-4bd8f3ddc739.herokuapp.com request_id=8c2c0a9a-3632-4b80-a10a-9ca568fd0fc9 fwd="86.14.252.189" dyno= connect= service= status=503 bytes= protocol=https

请记住,我不是软件开发人员。

heroku celery flower
© www.soinside.com 2019 - 2024. All rights reserved.