79389774

Date: 2025-01-27 05:09:31
Score: 2.5
Natty:
Report link

Queue is thread-safe but not process-shared.

Could you please show your uvicorn command for running server?

Also, I see you using debug=True. This command involves reloading, which can create two processes.

I could suggest you:

  1. Use debug=False:
app.run(host='0.0.0.0', port=PORT_UI, debug=False)
  1. Confirming it’s a single process in router handlers
print(os.getpid())
Reasons:
  • RegEx Blacklisted phrase (2.5): Could you please show your
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: Kirill Ilichev