Re:Postgres transactions are a distributed systems superpower
by LgWoodenBadger on Thursday July 02, 2026 @06:18PM
(#48768098)
And if that job never runs? Or if that job runs and then fails to commit that it ran in postgres?
[ Parent
| on HN ]
Re:Postgres transactions are a distributed systems superpower
by halfcat on Thursday July 02, 2026 @07:10PM
(#48768578)
The job will run the next time a worker runs (in both cases).
And doesn’t that mean the job potentially runs twice? Yes.
In DBOS there are two kinds of “things that run”: workflows, and steps (workflows are made of steps).
Workflows must be deterministic (so it’s fine if it runs twice). Steps don’t have to be deterministic but have at-least-once execution (so it’s best if these are idempotent).