Relative Content

Tag Archive for firebasegoogle-cloud-firestoregoogle-cloud-functions

Firebase Functions: onDocumentCreated retry not firing

I’ve setup a triggered function in Firebase using the onDocumentCreated trigger and noticed there is an option to set a boolean for retry. It is my assumption that this would result in a retry if the function throws an error. So I’ve setup the following test function and am running it with the local emulator. Unfortunately I have not been able to get the function to be called multiple times even though I see the error in the logs.

Firebase Cloud function not working well with runTransactions

I’ve got a little problem with my runTransactions using the Cloud Functions (JavaScript).
My app has a startTime, completeTime and deleteTime. So when the time reaches “completeTime”, it adds +1 to a field in the Firestore as shown in the CODE . This works well.