Skip to content

Commit

Permalink
Fix deploy
Browse files Browse the repository at this point in the history
Fix deploy
  • Loading branch information
Boldizsar Mezei committed May 11, 2024
1 parent e13de2d commit 5be2df0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/functions/deploy.script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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} \\
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 5be2df0

Please sign in to comment.