Get the latest tech news
Running Durable Workflows in Postgres Using DBOS
Technical deep dive into the new DBOS integration for Supabase
When a workflow starts, it generates a unique ID and stores it in a Postgres workflow_status table with a PENDING status. When a workflow completes, it updates its status in the Postgres workflow_status table to SUCCESS(or to ERROR, if it threw an uncaught exception). If a program is interrupted, on restart the DBOS library launches a background thread that resumes all incomplete workflows from the last completed step.
Or read this on Hacker News