Closed sergeyle closed 1 month ago
So Firestore therefore does not work in Firebase Cloud Functions (python). If you get more than one invocation of your function and work with documents the functions deadlock and timeout. This is pretty major issue with the Firebase platform. I was wondering why I was seeing intermittent timeouts.
edit: was unable to reproduce in Firebase Cloud Functions
I just tested this locally, and I was also unable to reproduce the issue. The only changes I made to your provided core was to point to a different collection name
Do you think the data you are storing in the backend could be relevant?
I'm going to close this for now, but feel free to re-open if you want to continue debugging your issue
Calling
get()
to retrieve a document snapshot concurrently from different threads reliably leads to a deadlock. This was attempted on an M1 Mac and a GCE Cloud Console Linux.This was tried on
google-cloud-firestore=(2.15.0|2.16.0)
Code to reproduce the bug: