Repository navigation
[wrangler] Handle dynamic retry delays in workflows instances describe - #15569
Conversation
🦋 Changeset detectedLatest commit: 9021f80 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Codeowners approval required for this PR:
Show detailed file reviewers |
@cloudflare/autoconfig
@cloudflare/build-output-utils
@cloudflare/codemods
@cloudflare/config
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-functions
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-plugin
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
The Workflows API serializes function retry delays as "[dynamic]". Parsing that as a duration produced an Invalid Date and crashed describe with RangeError before remaining steps were printed. Fixes cloudflare#15548
273bb25 to
10ba14a
Compare
|
Split this PR after CI/review feedback: bundling three unrelated bugs was going to stall review, and the description check required the template boxes.
The Windows |
The previous test update replaced emoji and table borders with question marks, which mismatched CLI snapshots in CI. Keep the new dynamic-delay cases as substring assertions on the original snapshots.
|
CI snapshot failures were from Unicode in the existing CLI snapshots being replaced with |
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
Fixes #15548.
wrangler workflows instances describecrashed withRangeError: Invalid time valuewhen a step was waiting on a retry whose delay was a function. The API serializes that delay as"[dynamic]"; itty-time parsed it asNaN, and date-fns then threw before the rest of the instance was printed.The command now renders
Retries At: unknown (dynamic delay)for that case, andunknownwhen a failed attempt hasend: null.This PR previously bundled two unrelated Vite plugin fixes. Those are now separate:
.wrangler/state, causing HMR to rebuild (Linux/Windows only) #15550 → watch-ignore PR