Skip to content

Commit 93ff24e

Browse files
authored
Merge pull request #56 from koichiro/feature/fix-response-time-2
Fix ack dead line time
2 parents 23ed620 + e89f560 commit 93ff24e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cloudbuild.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ steps:
3737
args:
3838
- -c
3939
- |
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
40+
_SUB=$(gcloud eventarc triggers describe "${_TRIGGER_NAME}" --location="${_REGION}" --format="value(transport.pubsub.subscription)" || echo "")
41+
if [ ! -z "$${_SUB}" ]; then
42+
echo "Updating subscription $${_SUB} ack-deadline to 600s"
43+
gcloud pubsub subscriptions update "$${_SUB}" --ack-deadline=600
4444
fi
4545
4646
options:

0 commit comments

Comments
 (0)