This problem should not be a problem of gunicorn not restarting. It should be a cache issue. The data in the database has changed, but flask still stores the previous data in the memory. It may be caused by you not reloading the data. I don't know exactly how you use it. That's all I can say.
You need to disconnect the database before and after the request or after the request
This problem should not be a problem of gunicorn not restarting. It should be a cache issue. The data in the database has changed, but flask still stores the previous data in the memory. It may be caused by you not reloading the data. I don't know exactly how you use it. That's all I can say.