Hi,
I am working on one of the project migrations from AWS to GCP. In that, I need to implement a workflow as below:
1. GCS Bucket Event >> 2. Storage Notification >> 3. PubSub for Filtering Events >> 4. Push Subscription >> 5. Cloud Function.
This cloud function (at 5.) reads the JSON file from the GCS bucket that initially triggers the event in step 1. Due to some third-party API issues, the cloud function was getting timed out, and hence it was getting retriggered by pubsub subscription. This issue might come in future as well so I want to reduce the deliveryAttempt to 2 or to maximum 3.
I have found a hack to it which is like (Please see the highlighted lines in below screenshot):
My question is, is there a better way of doing this?
Regards,
Avikash
