CloudflareContainerBackend: pass image, instance and containerSnapshot to ctx.container.start() for the durable_object scheduling policy
Les mainteneurs répondent en général sous 1 jour
@aron-cf y travaille déjà.
Depuis le 30/9/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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.
- Langage dominant
- TypeScript
- Étoiles
- 9.7k
- Forks
- 577
- Merge moyen
- 1 j 15 h
- PR mergées (30 j)
- 79
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de cloudflare/computer
-
worker-shell: redirected `cat` output and heredocs store non-ASCII bytes double-encoded (é becomes c3 83 c2 a9)Peut-être pris @aron-cf l’a pris il y a 4 jours. Ouvertebug priority: high
cloudflare/computer#286 · 1 commentaire · 1 réaction · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Export one file helper over workspace.fsPeut-être pris @aron-cf l’a pris il y a 12 jours. Ouverteenhancement
cloudflare/computer#261 · 1 commentaire · 1 réaction · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
dofs: resolving a directory scans its children as the directory growsPeut-être pris @aron-cf l’a pris il y a 20 jours. Ouvertebug
cloudflare/computer#236 · 1 commentaire · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 30/100
cloudflare/computer#224 · 5 commentaires · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Always run the "next" computerd workflow on push to the `release` branchPeut-être pris @aron-cf l’a pris il y a 24 jours. Ouvertebug
cloudflare/computer#222 · 2 commentaires · 1 réaction · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de cloudflare/computer
Issues similaires
-
Add API: BlockVectra Data APIOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 74/100
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
remotion-dev/remotion#12905 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
supermomonga/paseo-plugin-zcode-provider#83 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
oxidecomputer/skepsis#102 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
voidzero-dev/void#677 ·
Les mainteneurs répondent en général sous 1 jour