Skip to content

[workflows] Restart from step#13996

Open
vaishnav-mk wants to merge 3 commits into
mainfrom
vaish/restart-from-step-plumbing
Open

[workflows] Restart from step#13996
vaishnav-mk wants to merge 3 commits into
mainfrom
vaish/restart-from-step-plumbing

Conversation

@vaishnav-mk
Copy link
Copy Markdown
Contributor

Adds restart-from-step support to wrangler workflows instances restart.
This wires the existing WorkflowInstance.restart({ from }) support through Wrangler’s local and remote restart commands with:

  • --from-step-name
  • --from-step-count
  • --from-step-type
    It also updates the local explorer API schema/validation so from is accepted on restart requests, and fixes the underlying restart resolver so an omitted step type defaults to do as documented.

  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: this exposes already-documented restart options through Wrangler/local dev plumbing

A picture of a cute animal (not mandatory, but encouraged) (her name's pixel)
image

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 21, 2026

🦋 Changeset detected

Latest commit: 3f70ec0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
wrangler Minor
@cloudflare/vite-plugin Patch
@cloudflare/vitest-pool-workers Patch

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

@vaishnav-mk
Copy link
Copy Markdown
Contributor Author

/bonk review

@github-project-automation github-project-automation Bot moved this to Untriaged in workers-sdk May 21, 2026
@workers-devprod workers-devprod requested review from a team and james-elicx and removed request for a team May 21, 2026 16:35
@workers-devprod
Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • @cloudflare/workflows
  • @cloudflare/wrangler
Show detailed file reviewers
  • .changeset/workflows-restart-from-step-cli.md: [@cloudflare/wrangler]
  • packages/miniflare/scripts/openapi-filter-config.ts: [@cloudflare/wrangler]
  • packages/miniflare/src/workers/local-explorer/explorer.worker.ts: [@cloudflare/wrangler]
  • packages/miniflare/src/workers/local-explorer/generated/types.gen.ts: [@cloudflare/wrangler]
  • packages/miniflare/src/workers/local-explorer/generated/zod.gen.ts: [@cloudflare/wrangler]
  • packages/miniflare/src/workers/local-explorer/openapi.local.json: [@cloudflare/wrangler]
  • packages/miniflare/src/workers/local-explorer/resources/workflows.ts: [@cloudflare/wrangler]
  • packages/workflows-shared/src/lib/restart.ts: [@cloudflare/workflows @cloudflare/wrangler]
  • packages/workflows-shared/tests/engine.test.ts: [@cloudflare/workflows @cloudflare/wrangler]
  • packages/wrangler/src/tests/workflows.test.ts: [@cloudflare/wrangler]
  • packages/wrangler/src/workflows/commands/instances/restart.ts: [@cloudflare/wrangler]
  • packages/wrangler/src/workflows/local.ts: [@cloudflare/wrangler]
  • packages/wrangler/src/workflows/types.ts: [@cloudflare/wrangler]
  • packages/wrangler/src/workflows/utils.ts: [@cloudflare/wrangler]

@github-actions
Copy link
Copy Markdown
Contributor

✅ All changesets look good

@ask-bonk
Copy link
Copy Markdown
Contributor

ask-bonk Bot commented May 21, 2026

UnknownError: ProviderInitError

github run

@ask-bonk
Copy link
Copy Markdown
Contributor

ask-bonk Bot commented May 21, 2026

@vaishnav-mk Bonk workflow failed. Check the logs for details.

View workflow run · To retry, trigger Bonk again.

@ask-bonk
Copy link
Copy Markdown
Contributor

ask-bonk Bot commented May 21, 2026

UnknownError: ProviderInitError

github run

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 21, 2026

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@13996

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@13996

miniflare

npm i https://pkg.pr.new/miniflare@13996

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@13996

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@13996

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@13996

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@13996

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@13996

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@13996

wrangler

npm i https://pkg.pr.new/wrangler@13996

commit: 3f70ec0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

2 participants