i wonder how it works with long running functions, does it lock the db?
[1] https://dbos-project.github.io/ [2] https://www.vldb.org/pvldb/vol16/p2742-kraft.pdf