Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gunicorn + Unicorn + Fastapi, QueuedLogHandler的worker中的queue一直为空 #213

Open
zhupr opened this issue Mar 17, 2022 · 3 comments

Comments

@zhupr
Copy link

zhupr commented Mar 17, 2022

QueuedLogHandler.emit中的queue一直在增加, 而worker线程(self.worker)中的queue(QueuedLogHandler._get_batch_requests)一直为空

@4mYHime
Copy link

4mYHime commented May 7, 2022

请问现在通过FastAPI+Uvicorn提供HTTP服务,在使用SLS服务商有比较健全的方案吗?

@joey-fudan
Copy link

我也遇到了类似情况, 就是在fastapi框架下使用的log不能上传aliyun.
请问有什么解决办法吗

@lialzm
Copy link

lialzm commented Jul 16, 2022

可以试试我的这个pr #216 ,有可能是多进程的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants