← Back to context

Comment by qianli_cs

2 days ago

Hello! I'm a co-founder at DBOS here and I'm happy to answer any questions :)

Can you change the workflow code for a running workflow that already advanced some steps? What support DBOS have for workflow evolution?

I know this this might sound scripted or can be considered cliche but what is the use case for DBOS.

  • The main use case is to build reliable programs. For example, orchestrating long-running workflows, running cron jobs, and orchestrating AI agents with human-in-the-loop.

    DBOS makes external asynchronous API calls reliable and crashproof, without needing to rely on an external orchestration service.

How do you persist execution state? Does it hook into the Python interpreter to capture referenced variables/data structures etc, so they are available when the state needs to be restored?

  • That work is done by the decorators! They wrap around your functions and store the execution state of your workflows in Postgres, specifically:

    - Which workflows are executing

    - What their inputs were

    - Which steps have completed

    - What their outputs were

    Here's a reference for the Postgres tables DBOS uses to manage that state: https://docs.dbos.dev/explanations/system-tables

FYI the “Build Crashproof Apps” button in your docs doesn’t do anything.

  • You'll need to click either the Python or TypeScript icon. We support both languages and will add more icons there.

    • Thanks the icons work!

      I was originally looking at the docs to see if there was any information on multi-instance (horizontally scaled) apps. Is this supported? If so, how does that work?

      1 reply →