I am currently working on a Google App Engine (Python) project that mainly uses Google Cloud SQL (with SQL Alchemy) to back up data.
In most cases, everything works fine. However, from time to time, “something” leaves, and we begin to receive strange exceptions. For instance:
We think this may be due to the rollout of a new GAE instance, but we cannot be sure.
With all that said, my question is this. What are some strategies that my team can use to track this issue?
Keep in mind that the application runs on the Google App Engine, which may slightly limit our options.
Update: Owen Nelson's comment below. We added threading.RLock , as suggested by Google. However, we still see this problem, but much less often.
I want to be clear, so far we have not been able to reproduce this problem in our local environment. We are sure that this is connected with dynamic instances, and this is not what we really can do in development.
source share