From 5be2df008c763c0f80bc66c21bfde24c29376ed6 Mon Sep 17 00:00:00 2001 From: Boldizsar Mezei Date: Sat, 11 May 2024 20:39:07 +0200 Subject: [PATCH] Fix deploy Fix deploy --- packages/functions/deploy.script.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/functions/deploy.script.ts b/packages/functions/deploy.script.ts index 95d4b2846..10a67e4e5 100644 --- a/packages/functions/deploy.script.ts +++ b/packages/functions/deploy.script.ts @@ -32,10 +32,7 @@ const deployServices = () => { ...flattenObject(onTriggers), ...flattenObject(onScheduled), ...flattenObject(onStorage), - }).forEach(([name, value], index) => { - if (index % 50 === 0) { - fs.appendFileSync(file, 'wait\n\n'); - } + }).forEach(([name, value]) => { const options = (value as CloudFunctions).runtimeOptions; let command = `gcloud run deploy ${name} \\ @@ -150,7 +147,7 @@ const deployCronTriggers = () => { const setMaxAckDeadline = () => { fs.appendFileSync( file, - `for SUBSCRIPTION_NAME in $(gcloud pubsub subscriptions list --format="value(name)")\n`, + `for SUBSCRIPTION_NAME in $(gcloud pubsub subscriptions list --format="value(name)" | grep -v 'subs-onupsert')\n`, ); fs.appendFileSync(file, `do\n`); fs.appendFileSync(