cloudflare / cloudflare/moltworker

I set SANDBOX_SLEEP_AFTER=1m, but the container stays ACTIVE continuously.

Open
#156 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
10k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

The container was initially READY. After I opened the control UI once, it became ACTIVE and has remained ACTIVE since then.

Additional context:
- I never visited /_admin to enable the control UI.
- I never sent any message to moltbot.
- I currently have no control UI or admin UI opened.
- There is no event shown in the container logs.

However, about every ~3 minutes I see an info log from the Worker/Durable Object with "eventType": "alarm" (entrypoint: "Sandbox"). The full log is:

{ "message": "2026-02-03T19:33:32.244Z", "level": "info", "$workers": { "diagnosticsChannelEvents": [], "truncated": false, "event": { "scheduledTime": "2026-02-03T19:33:32.244Z" }, "scriptName": "moltbot-sandbox", "outcome": "ok", "eventType": "alarm", "entrypoint": "Sandbox", "scriptVersion": { "id": "946336f2-eb7b-40d4-8a5e-0d308a7531c3" }, "executionModel": "durableObject", "durableObjectId": "a4038e4dee859fbeaf7856c60e2288dc328705030915423de85d7a9200167cad", "requestId": "QWN7TVSIZBFNM9X7", "wallTimeMs": 180002, "cpuTimeMs": 0 }, "$metadata": { "id": "01KGJG3AEE21K1XGH8SYH9T8FZ", "requestId": "QWN7TVSIZBFNM9X7", "trigger": "2026-02-03T19:33:32.244Z", "service": "moltbot-sandbox", "level": "info", "message": "2026-02-03T19:33:32.244Z", "account": "508075981934f4fa869b248de8e187e0", "type": "cf-worker-event", "fingerprint": "c3f36302392fc998f132bb0754c97924", "origin": "alarm", "messageTemplate": "" } } }

I also set the Cron scheduled() to "0 */2 * * *" (once per 2 hours).

The metrics show the container keeps running and incurring cost:
Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.