From 3a9bd4a8fbea6cc5f9181b2f02540be445bf40df Mon Sep 17 00:00:00 2001 From: Rail Aliiev Date: Tue, 9 Jan 2024 14:16:42 -0500 Subject: [PATCH] Run cache invalidation async By default it waits until the cache is invalidated. After the request is sent, there is nothing we can do, except to fail due to a timeout or something else. --- build/release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/release.sh b/build/release.sh index 57713f9a..5755b75a 100755 --- a/build/release.sh +++ b/build/release.sh @@ -36,4 +36,4 @@ gcloud auth activate-service-account --key-file=.google-credentials.json gsutil rsync -x old-index.yaml "build/artifacts/" "gs://${gcs_bucket}/" # Invalidate any cached version of index.yaml (so this version is immediately available) -gcloud --project $google_project compute url-maps invalidate-cdn-cache $lb_name --path "/index.yaml" +gcloud --project $google_project compute url-maps invalidate-cdn-cache $lb_name --path "/index.yaml" --async