Skip to content

Instantly share code, notes, and snippets.

@spiashko
Created October 29, 2020 12:48
Show Gist options
  • Save spiashko/ecea356ae339b7b7836e6885b8a0d4da to your computer and use it in GitHub Desktop.
Save spiashko/ecea356ae339b7b7836e6885b8a0d4da to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in $(gcloud pubsub subscriptions list | grep name | cut -d: -f2); do
echo updating retry-policy for $i
gcloud pubsub subscriptions update $i --min-retry-delay=10s --max-retry-delay=600s
echo updated
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment