climsoft / climsoft-app

Web-based application that uses the API exposed by climsoft-api
MIT License
0 stars 2 forks source link

API awaken #34

Closed isedwards closed 1 year ago

isedwards commented 2 years ago

The backend currently has an unresolved issue where the database connection goes to sleep after a period of inactivity. This causes the next API request to fail.

Until this problem is resolved it would be useful to add a workaround to the front end so that if a request hasn't been made for X minutes (where X is initial 5) an additional redundant request for data is made before additional API calls.

(The user shouldn't be aware of the workaround and it should be removed as soon as the issue with the backend is resolved)