CloudflareContainerBackend: pass image, instance and containerSnapshot to ctx.container.start() for the durable_object scheduling policy
Maintainer antworten meist innerhalb von 1 Tag
@aron-cf arbeitet bereits daran.
Seit 30.9.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
CloudflareContainerBackend cannot start a container on an app that uses the new durable_object scheduling policy, because it never passes an image to ctx.container.start().
What happens today (main at ada64809, 2026-09-29; @cloudflare/computer 0.3.0)
ContainerLaunchSpecis{ env, enableInternet }, and the host launches withctx.container.start({ enableInternet, env }).- Under
durable_object,monitor()rejects a start that names neitherimagenorcontainerSnapshot(scheduling policy). - With no
instance, the container getslite(1/16 vCPU, 256 MiB), which is too small for computerd plus a build toolchain. #launchAsis private, so a Durable Object usingwithWorkspaceContainercannot add these fields itself without replacingctx.container.
What would fix it
- Optional
image,instanceandcontainerSnapshotonCloudflareContainerBackendOptions. Each would be a value or a function the backend calls at every launch, so the Durable Object can choose them per task. - Carry the three through
ContainerLaunchSpec, and include them in the launch record, so a running container started with a different spec is relaunched, asenvandenableInternetalready are. - A
snapshot(options)method on the host API that passes through toctx.container.snapshotContainer(). A workspace could then save the container's own disk (tool caches) beforesetInactivityTimeoutlets it sleep./workspaceis a mount, so a snapshot leaves it out, and it stays with the Workspace as now.
Why it matters to us
We run CloudflareContainerBackend inside our own Durable Object through withWorkspaceContainer. Moving to the new policy would give us:
- the faster start path from the 2026-09-30 post;
- an instance size chosen per task;
- no app-wide rollout that replaces containers while a build is running.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 9.7k
- Forks
- 577
- Ø Merge
- 1 T. 15 Std.
- Gemergte PRs (30 T.)
- 79
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus cloudflare/computer
-
worker-shell: redirected `cat` output and heredocs store non-ASCII bytes double-encoded (é becomes c3 83 c2 a9)Evtl. vergeben @aron-cf hat das vor 3 Tagen übernommen. Offenbug priority: high
cloudflare/computer#286 · 1 Kommentar · 1 Reaktion · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Export one file helper over workspace.fsEvtl. vergeben @aron-cf hat das vor 12 Tagen übernommen. Offenenhancement
cloudflare/computer#261 · 1 Kommentar · 1 Reaktion · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
dofs: resolving a directory scans its children as the directory growsEvtl. vergeben @aron-cf hat das vor 19 Tagen übernommen. Offenbug
cloudflare/computer#236 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 30/100
cloudflare/computer#224 · 5 Kommentare · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Always run the "next" computerd workflow on push to the `release` branchEvtl. vergeben @aron-cf hat das vor 23 Tagen übernommen. Offenbug
cloudflare/computer#222 · 2 Kommentare · 1 Reaktion · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in cloudflare/computer
Ähnliche Issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster maturity:stable no-stale P1
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
openclaw/openclaw#190772 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
flisk-sh/run-my-agents#61 ·
-
Schwierigkeit 2/5 3-5 Tage Anfängerfreundlichkeit 62/100
career-ops-hq/career-ops#6399 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
BoardGamesEmpire/board-games-empire-backend#1027 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
johnfrog76/connected-deck#21 ·