UWA-CITS3200-18-2021 / ReSQ

ReSQ (Realtime Studysmarter Queue)
Creative Commons Zero v1.0 Universal
1 stars 0 forks source link

Change production setup to use request workers #56

Closed frinzekt closed 3 years ago

frinzekt commented 3 years ago

Basic Information

For production standard, flask should be served with request workers as seen in https://flask.palletsprojects.com/en/2.0.x/deploying/wsgi-standalone/

Other Information

Currently, the production version just uses flask run a development server of flask. See setup at https://github.com/UWA-CITS3200-18-2021/ReSQ/blob/main/docker/app/runtime.sh#L66

This may be related to the issue with #53. When request workers are used, database connections automatically get discarded after the running process of a request worker (30 seconds by default as per https://devcenter.heroku.com/articles/python-gunicorn#:~:text=Worker%20timeouts,with%20a%20lower%20timeout%20configuration.)

frinzekt commented 3 years ago

Closed by #57