Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

OBJECT_FINALIZE multiple events when file uploaded to Cloud Storage

I have a client that uploads files to Cloud Storage. I have added a Pub/Sub Notification on OBJECT_FINALIZE. When I test it and upload the files myself via the GUI or via gcloud/gsutil exactly one notification is sent upon upload. However, when my client uploads the file to Cloud Storage multiple notifications are sent and my Cloud Function runs 100s of times. I suppose my client is streaming the upload and that causes the issues. Is there a way that I can get only one notification when the file is completely uploaded? Or would I need to look at the metadata in some way? 

1 1 3,191
1 REPLY 1