Repository navigation
Run connectors as Dynamic Workers - #53
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 61e1c87 | Oct 19 2026, 09:21 PM |
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.
Connector code and secret updates previously required separate native Workers and fleet configuration changes. This moves connectors onto the Dynamic Worker runtime used by apps. Code and secret changes prepare and activate versioned snapshots without redeploying the shared native runtime.
Apps and connectors now share the worker infrastructure end to end:
Idempotency-Key: the same key/content returns the original operation, different content conflicts, and a new key starts a new attempt.Role-specific behavior remains explicit:
waitUntilwork, including nested calls and asynchronous cancellation cleanup. Older generations cannot downgrade an object that has advanced.WIDEFLEET_CONNECTOR_KEYthrough versioned deployment configuration. Encryption-key rotation and historical snapshot/resource cleanup remain manual.Runtime boundaries:
waitUntil, but not RPC/facet calls; the connector gateway test also observes no tail for rejected fetch calls. Local workerd tests verify HTTP/RPC tails. Missing events are not reconstructed; delivery remains best-effort.fetch(). Callbacks, returned RPC objects, facet alarms and WebSockets are outside the common connector contract. There is no console instrumentation, alarm scheduler or WebSocket implementation without hibernation. celld is unchanged.Validation:
pnpm check, production control-plane build, Rust formatting/Clippy, and 51 Rust workspace tests pass.The regular suite passes 421 tests; environment-gated suites are run separately. Dynamic connector/app tests pass 45 cases on celld/workerd, with three runtime-specific skips, including shared Wasm loading and native text/data rejection. App and connector CLI suites pass 46 cases, including stable upload identity and bytes across a transient failure.
All 164 Cloudflare tests in 16 files pass after a fresh hosted build, including app/connector deployment, runtime behavior and replay/conflict tests. Shared upload, binary-download authorization, secret rotation, module reuse, source-map storage/resolution and telemetry regressions pass. Replaying an old request preserves the newer desired deployment; a new key can retry failed activation.
All 14 packaged CLI/agent/container deployment tests pass against a freshly built local runtime image, covering connector RPC, durable state, secret rotation, activation recovery, app deployment, assets, resources, network restrictions, previews, migrations, Workflows and restarts.
A deterministic native Workflow regression proves that paused instances must not run failure-recording steps. The existing Miniflare development patch enforces this, and SQL failure fixtures remove their triggers even after an assertion fails. Runtime rejection/retry assertions use the same bounded wait as neighboring asynchronous Workflow tests. Hosted production deployment logic is unchanged by this test-runtime correction.
Public documentation is maintained separately in draft PR #54. Publication remains blocked until matching platform and runtime releases contain these changes and their artifacts are available.


Confidence Score: 5/5
The PR appears safe to merge for the stated fresh-installation scope.Summary
Connectors now run as Dynamic Workers and share upload, module storage, resource bindings and logging with apps.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR CLI["CLI multipart upload"] --> API["Authorized API"] API --> Store["Immutable modules and manifest"] Store --> Deploy["Agent or hosted deployment"] Deploy --> Prepare["Prepare snapshot and check readiness"] Prepare --> Activate["Activate connector version"] App["App connector binding"] --> Gateway["Resolve active version"] Activate --> Gateway Gateway --> Worker["Dynamic Worker"] Worker --> Supervisor["Object supervisor"] Supervisor --> Facet["Persistent object facet"]Reviews (9) · Last reviewed commit: "Fix portable bundles and paused workflow..." · Reviewed by Greptile