firestore-revenuecat-purchases
firestore-revenuecat-purchases copied to clipboard
Multiple events per transaction
Hi! I'm seeing multiple runs of a Google Cloud Function created by RevenueCat Extension.
- RevenueCat Integration creates a Google Cloud function
- Min instances for it is 0
- When RevenueCat posts an event it make GCP Function start from cold
- The start takes too long so someone (RevenueCat?) detects a timeout
- RevenueCat sends a second request (to already pre-warmed function from the first call)
- The first request actually was not cancelled, just delayed.
- THe event from the first request start being processed
- The event from the second requests start being processed
Thus I have a situation when a single RevenueCat event dispatches two events both of which got handled.
Can we make RevenueCat wait for the cold start longer? Can we set a min instances for a Google Cloud Function through extension settings?