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