You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
OS: mac
sanic-version: 22.9.1
when i start a server without single_thread and set workers>=1, the server crash
[sanic.error 2022-11-17 17:16:10,932] [pid 5311] [ERROR]: Experienced exception while trying to serve [in /Users/chendx/anaconda3-2022.05/envs/pigai/lib/python3.9/site-packages/sanic/mixins/startup.py:854]
Traceback (most recent call last):
File "/Users/chendx/anaconda3-2022.05/envs/pigai/lib/python3.9/site-packages/sanic/mixins/startup.py", line 851, in serve
manager.run()
File "/Users/chendx/anaconda3-2022.05/envs/pigai/lib/python3.9/site-packages/sanic/worker/manager.py", line 63, in run
self.monitor()
File "/Users/chendx/anaconda3-2022.05/envs/pigai/lib/python3.9/site-packages/sanic/worker/manager.py", line 99, in monitor
self.wait_for_ack()
File "/Users/chendx/anaconda3-2022.05/envs/pigai/lib/python3.9/site-packages/sanic/worker/manager.py", line 139, in wait_for_ack
sys.exit(1)
SystemExit: 1
new server sanic intro a WorkerManager.
the manager will wait subprocess to ready in 5 seconds (WorkerManager.THRESHOLD = 500)
but subprocess has lots of resource to load (jieba custom data, torch model etc.)
preload on main processing not working (maybe caused by macos's fork method)
Describe the solution you'd like
need a params to control the WorkerManager's wait timeout.
Additional context
No response
The text was updated successfully, but these errors were encountered:
That seems reasonable, but you also can monkeypatch it pretty easy if needed. That was why I made it a class variable. Sometimes making things this this an app.config is difficult since there are so many ways to control them and users get frustrated when things do not work because they updated the config after the variable was used.
Is there an existing issue for this?
Is your feature request related to a problem? Please describe.
OS: mac
sanic-version: 22.9.1
when i start a server without single_thread and set workers>=1, the server crash
new server sanic intro a WorkerManager.
the manager will wait subprocess to ready in 5 seconds (WorkerManager.THRESHOLD = 500)
but subprocess has lots of resource to load (jieba custom data, torch model etc.)
preload on main processing not working (maybe caused by macos's fork method)
Describe the solution you'd like
need a params to control the WorkerManager's wait timeout.
Additional context
No response
The text was updated successfully, but these errors were encountered: