-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels