Skip to content

Run cloud app bundling in a dynamic Worker#1375

Merged
RhysSullivan merged 2 commits into
mainfrom
apps-cloud-bundler-isolate
Jul 9, 2026
Merged

Run cloud app bundling in a dynamic Worker#1375
RhysSullivan merged 2 commits into
mainfrom
apps-cloud-bundler-isolate

Conversation

@RhysSullivan

Copy link
Copy Markdown
Collaborator

The publish bundler (esbuild-wasm plus the npm install of app dependencies) now runs in its own dynamically loaded Worker on cloud instead of the serving isolate, matching the selfhost workerd design. A heavy dependency tree no longer exhausts the request isolate's memory; a bundling failure now surfaces as a failed sync instead of a dropped connection.

Also reuses app tool isolates across invocations via a stable, tenant-scoped Worker Loader ID keyed on the content-addressed bundle.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 9, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing 144f683 Commit Preview URL

Branch Preview URL
Jul 09 2026, 01:55 AM

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Cloudflare preview

Torn down — the PR is closed.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 9, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud 144f683 Jul 09 2026, 01:57 AM

@pkg-pr-new

pkg-pr-new Bot commented Jul 9, 2026

Copy link
Copy Markdown

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@1375

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@1375

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@1375

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@1375

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@1375

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@1375

executor

npm i https://pkg.pr.new/executor@1375

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@1375

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@1375

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@1375

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@1375

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@1375

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@1375

commit: 144f683

@RhysSullivan RhysSullivan force-pushed the apps-cloud-bundler-isolate branch from 4bf4840 to fe68780 Compare July 9, 2026 01:41
The publish bundler (esbuild-wasm plus npm install) now runs in its own dynamically loaded Worker instead of the request isolate, matching the selfhost workerd design.

A heavy dependency tree no longer exhausts the serving isolate's memory.
Invoke now uses a stable Worker Loader ID derived from the owner-scoped content-addressed bundle key and driver version, allowing warm isolates to be reused without sharing state across owners.

Collect remains one-shot and uses loader.load when the binding exposes it.
@RhysSullivan RhysSullivan force-pushed the apps-cloud-bundler-isolate branch from fe68780 to 144f683 Compare July 9, 2026 01:52
@RhysSullivan RhysSullivan marked this pull request as ready for review July 9, 2026 02:01
@RhysSullivan RhysSullivan merged commit 0f81165 into main Jul 9, 2026
21 checks passed
@RhysSullivan RhysSullivan mentioned this pull request Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant