diff --git a/Makefile b/Makefile index 324ab1b..0272401 100644 --- a/Makefile +++ b/Makefile @@ -16,4 +16,8 @@ refresh: login ## Refresh state to match reality PULUMI_CONFIG_PASSPHRASE_FILE=passphrase.prod.txt pulumi refresh --yes --stack prod up: login ## Deploy infrastructure (with refresh to detect drift, e.g. expired org invites) + # Dynamic providers serialize their implementation into state. Run a plain + # `up` first so any provider-code changes are captured, then refresh with the + # freshly serialized `read()`. Otherwise refresh runs stale code and fails. + PULUMI_CONFIG_PASSPHRASE_FILE=passphrase.prod.txt pulumi up --yes --stack prod PULUMI_CONFIG_PASSPHRASE_FILE=passphrase.prod.txt pulumi up --refresh --yes --stack prod diff --git a/src/discord.ts b/src/discord.ts index 99896c2..2c50ad3 100644 --- a/src/discord.ts +++ b/src/discord.ts @@ -34,7 +34,7 @@ async function discordFetch( token: string, endpoint: string, options: RequestInit = {}, - maxRetries = 5 + maxRetries = 10 ): Promise { let lastError: Error | undefined;