CloudflareContainerBackend: pass image, instance and containerSnapshot to ctx.container.start() for the durable_object scheduling policy
Los mantenedores suelen responder en 1 día
@aron-cf ya está trabajando en esto.
Desde el 30/9/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 9.5k
- Forks
- 552
- Merge medio
- 2 d 5 h
- PR fusionados (30 d)
- 48
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de cloudflare/computer
-
Make just-bash and acorn optional peer dependencies, pulled in only by the backend that needs themAbiertoenhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
cloudflare/computer#220 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Workspace namespaces: more than one Workspace per Durable Object storagePosiblemente ocupada @aron-cf la tomó hace 1 día. Abiertoenhancement
cloudflare/computer#219 · 1 comentario · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
git: host-held credentials for model-driven clone, fetch, pull and pushPosiblemente ocupada @aron-cf la tomó hace 1 día. Abiertoenhancement
cloudflare/computer#218 · 1 comentario · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Offload large files (4 MB+) to R2Posiblemente ocupada @aron-cf la tomó hace 1 día. Abiertoenhancement
cloudflare/computer#217 · 1 comentario · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
computerd: writes applied over sync do not reach inotify watchers on the FUSE mountPosiblemente ocupada @aron-cf la tomó hace 6 días. Abiertobug
cloudflare/computer#196 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de cloudflare/computer
Issues similares
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster no-stale P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
openclaw/openclaw#168089 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
✨ enhancement needs-discussion
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
-
[Bug]: [MCP/CLI] Bare loopback IP addresses (127.0.0.1:port) and hosts with ports fail to navigate due to erroneous scheme inferencePosiblemente ocupada @alok-108 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
microsoft/playwright#43263 ·
Los mantenedores suelen responder en 1 día
-
area:studio type:security
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
enhancement good first issue Stellar Wave trivial
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
StellarCanary/ProtocolCanary-Action#331 ·
Los mantenedores suelen responder en 1 día