We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2aee3b7 + 9349a90 commit 23ed620Copy full SHA for 23ed620
1 file changed
cloudbuild.yaml
@@ -32,6 +32,16 @@ steps:
32
- --event-filters=type=google.cloud.storage.object.v1.finalized
33
- --event-filters=bucket=${_TRIGGER_BUCKET}
34
- --service-account=${_SERVICE_ACCOUNT_EMAIL}
35
+ - name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
36
+ entrypoint: bash
37
+ args:
38
+ - -c
39
+ - |
40
+ SUBSCRIPTION=$(gcloud eventarc triggers describe "${_TRIGGER_NAME}" --location="${_REGION}" --format="value(transport.pubsub.subscription)")
41
+ if [ ! -z "$SUBSCRIPTION" ]; then
42
+ echo "Updating subscription ${SUBSCRIPTION} ack-deadline to 600s"
43
+ gcloud pubsub subscriptions update "${SUBSCRIPTION}" --ack-deadline=600
44
+ fi
45
46
options:
47
logging: CLOUD_LOGGING_ONLY
0 commit comments