[prototype] Add experimental config workflow exports#14693
Draft
ericclemmons wants to merge 5 commits into
Draft
[prototype] Add experimental config workflow exports#14693ericclemmons wants to merge 5 commits into
ericclemmons wants to merge 5 commits into
Conversation
🦋 Changeset detectedLatest commit: 94e5240 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 |
ericclemmons
force-pushed
the
codex/workflow-experimental-config
branch
from
July 14, 2026 23:44
c786db9 to
711a134
Compare
Contributor
|
✅ All changesets look good |
@cloudflare/autoconfig
@cloudflare/config
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
exports.workflow()to the experimental config API for declaring Workflows owned by a Worker.defineWorker(...).workflow()andbindings.workflow().Manual validation
Use the existing
fixtures/experimental-new-configfixture with a unique Worker and Workflow name.In
fixtures/experimental-new-config/cloudflare.config.ts, importexports, give the Worker a disposable unique name, and add the Workflow export:In
fixtures/experimental-new-config/src/index.ts, export the matching Workflow class:Start local development from the repository root:
In another terminal, trigger and inspect the locally simulated Workflow:
Expected:
wrangler devstarts without a legacyworkflowsbinding, the trigger creates an instance, and the instance completes.⛅️ wrangler 4.110.0 ──────────────────── 🚀 Workflow instance "c67f4e3b-d730-4224-814b-2ce2e600e64a" has been triggered successfullyDeploy the disposable Worker and verify the production API contract:
Expected: deploy provisions the Workflow using export class
ConfigWorkflow,describereports the configured Worker/class and step limit, and a remotely triggered instance completes.⛅️ wrangler 4.110.0 ──────────────────── Total Upload: 0.63 KiB / gzip: 0.38 KiB Your Worker has access to the following bindings: Binding Resource env.MY_TEXT ("The mode is undefined") Environment Variable Uploaded experimental-new-config (1.09 sec) Deployed experimental-new-config triggers (2.64 sec) https://experimental-new-config.eclemmons-individual-account.workers.dev workflow: my-workflow Current Version ID: 47a5e3ef-aa24-432b-b65a-41a5e535b09c⛅️ wrangler 4.110.0 ──────────────────── 🚀 Workflow instance "d8e61a62-31b1-4d30-a8aa-a4585ace4d03" has been queued successfullyClean up the disposable resources:
⛅️ wrangler 4.110.0 ──────────────────── ✅ Workflow "my-workflow" removed successfully.⛅️ wrangler 4.110.0 ──────────────────── ✔ Are you sure you want to delete experimental-new-config? This action cannot be undone. … yes Successfully deleted experimental-new-configAutomated validation
pnpm check— 194/194 tasks passed.