KilnVM Live Labs /lab/dbos-sqlite-crash-recovery
Step 1 of 3 Docs Claim This Sandbox
Unclaimed Preview Sandbox · Hosted by KilnVM (15-run evaluation cap). Maintain this tool? Claim & embed on your docs →

Durable SQLite Workflow Crash Recovery with DBOS

Launch a local DBOS and FastAPI service backed by SQLite, hard-kill the server mid-workflow with kill -9, and restart to recover automatically from checkpoints.

Step 1 of 3

Launch DBOS FastAPI app with SQLite checkpoints

/workspace/main.py defines a two-step DBOS durable workflow backed by local SQLite (dbos_system.sqlite). Step 1 commits its checkpoint and pauses until /tmp/allow_step2 exists so you can simulate a mid-flight crash.

Start main.py on 127.0.0.1:8000 and verify /health:

bash
cd /workspace && python3 main.py >/tmp/dbos.log 2>&1 </dev/null & for i in $(seq 30); do python3 -c "import urllib.request as r;print(r.urlopen('http://127.0.0.1:8000/health').read().decode())" 2>/dev/null && break; sleep 0.3; done