fix(ci): reserialize dynamic providers before refresh
Split `make up` into two phases: a plain `pulumi up` first, then `pulumi up --refresh`. Dynamic providers serialize their implementation into state at create/update time. During refresh, the serialized `read()` runs — so any provider-code change (like the Discord 429 retry logic) doesn't take effect until a successful update writes the new `__provider` to state. Running refresh first used the stale serialized code from the last successful deploy, which had no rate-limit handling, failing on parallel Discord member lookups. Also bump discordFetch maxRetries from 5 to 10 for headroom against ~68 parallel refresh reads.
This commit is contained in:
parent
3a06068d55
commit
ffa85f0109
1 changed files with 5 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ async function discordFetch<T>(
|
|||
token: string,
|
||||
endpoint: string,
|
||||
options: RequestInit = {},
|
||||
maxRetries = 5
|
||||
maxRetries = 10
|
||||
): Promise<T> {
|
||||
let lastError: Error | undefined;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue