vendredi 26 juillet 2019

Server is sending response for short time processing/functionality only

When the API seems to be running for a long time the server does not

send the JSON response. In spite of the fact that the server process has successfully completed its operation and does not even throw an error.

I have deployed a flask WSGI app using gunicorn with 4 worker. The server is able to accept the request but after completing the said operation that is after one hour, the server does not send a JSON response. The app does not even throw an error.

My postman software seems to load the request forever.

screen gunicorn --bind 0.0.0.0:5002  server:app --worker-class gevent  --workers 3 --access-logfile ./logging.txt

My server should send a JSON response every time it completes its operation. Whether it is a short time operation or long-time operation.




Aucun commentaire:

Enregistrer un commentaire