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
Issue:
I added uwsgi.lock() and uwsgi.unlock() in my endpoints.py file like this. When the first exception occurs in an SLU service, the SLU will be left in a locked state. The SLU will not be attending to any following requests. This behavior is bad because, if one error occurs, then everything will fail until we redeploy.
Steps to reproduce locally:
If not already present, add uwsgi.lock() and uwsgi.unlock() in your local endpoints.py file like this.
Run task serve to run your SLU service locally
Intentionally, create a curl request such that it causes an exception in the PREDICT_API function of the endpoints.py file. Something like 1 divided by 0
Send this curl request to your local SLU
You should see the Exception showing up in the output of your terminal. Your SLU service should still be running though.
Send the same curl request again
You should see that you are getting an empty reply from the SLU service after 1 minute
The text was updated successfully, but these errors were encountered:
Issue:
I added
uwsgi.lock()
anduwsgi.unlock()
in myendpoints.py
file like this. When the first exception occurs in an SLU service, the SLU will be left in a locked state. The SLU will not be attending to any following requests. This behavior is bad because, if one error occurs, then everything will fail until we redeploy.Steps to reproduce locally:
The text was updated successfully, but these errors were encountered: