Waymark - Durable background workflows compiled to bytecode

Show HN: Waymark – A workflow engine that compiles jobs instead of replaying

Waymark - Durable background workflows compiled to bytecode

Waymark is a Python library for building durable background tasks that survive server restarts and crashes, using only Postgres as infrastructure. Unlike replay-based engines like Temporal, Waymark compiles your workflow's control flow into bytecode for a durable virtual machine, so your code never re-executes. Write workflows as plain async Python with loops, conditionals, and parallel branches, and actions as distributed functions with per-call retries and timeouts. It includes a built-in webapp for monitoring and supports scheduled workflows. Ideal for teams already using Postgres who want simple, testable background jobs without extra infrastructure.

Background jobs in webapps are so frequently used that they should really be a primitive of your fullstack library: database, backend, frontend, and background jobs.
  1. msteffen

    This is so cool. I spent years at Pachyderm (YC...something) banging our head against:

    - we're "Bazel for data"

    - but...we have no Starlark. We're trying to port Airflow but it's not playing well with the way we cache partial results.

    Amazing to me that I'm only now seeing the architecture pattern of "pure coordination language connecting sandboxed imperative components", which is used by Nix and Bazel, applied to distributed workflows. If somebody applied this to batch data processing you might have a Pachyderm that actually works better than ours did.

  2. yhjz

    Nice project! (And website!)

    Great to see some experimentation in this space. I really like the idea of 'make this async function a background process' using a simple annotation.

    What kind of IR do you use? I often wonder what a WASM based durable execution engine would look like. And what that pattern would unlock.

  3. gavmor

    Durable execution has been on my radar for a minute but, although I've had a few pubsub usecases here and there, I've never had much call for long-running jobs that weren't simply cheaper to restart, AFAIR.

    With agentic workloads, though—especially trending towards high network calls and smaller models—I do find a lot of concurrency to be a pain in the ass to pick up where we left off. Is that what "durability" ameliorates?

    I just wonder what I'm leaving on the table.

  4. mukeshsinghnyc

    How is it different from temporal ? How code execution governance policy is handled to avoid issues like hogging face ?

  5. slopnt

    The idea makes sense and the work is great. Some feedback I have is that it becomes hard to try the project out when postgres is a mandatory dependency: I understand that there are scalability reasons why that choice was made, but it would be neat if sqlite was an option.

More from this day

2026-11-06