AIAny
MLOps2026
Icon for item

pg_durable

Runs durable, checkpointed SQL workflows inside PostgreSQL so long-running data and AI pipelines can resume after crashes without external orchestrators. Provides a SQL DSL, in-process background worker, and Postgres-backed state—useful for embeddings, ETL, scheduling, and fan-out jobs when you can install extensions.

Introduction

Most AI and data pipelines stitch together schedulers, queues, workers, and status tables — and then spend more time handling partial failures and restarts than doing useful work. Putting durable execution inside the database flips that trade-off: workflows execute as checkpointed SQL graphs, state lives in the same backup/ACL model as your data, and the runtime resumes from the last checkpoint after crashes.

What Sets It Apart
  • SQL-first durable execution: workflow graphs are authored in SQL using composable operators (e.g., |=>, ~>) so pipeline logic lives next to the rows it touches instead of in external orchestrators. This reduces duplication of state and simplifies auditing.
  • In-process background worker + Postgres state: a background worker hosts the duroxide runtime while duroxide-pg persists instance state in Postgres schemas. That design avoids external queues or Redis for checkpointing and lets you query progress directly from the database.
  • Practical for AI pipelines: explicitly calls out embedding pipelines (chunk → embed → upsert to pgvector), ingest/transform flows, fan-out aggregations, and scheduling tasks — common patterns in model preprocessing, dataset builds, and inference enrichment.
  • Packaging & compatibility: publishes Debian packages for PostgreSQL 17 and 18 and provides dev workflows (codespace, pgrx) — making it practical to test or run where installing extensions is acceptable.
Who It's For and Trade-offs

Great fit if you already keep canonical state in Postgres and want background workflows that: must survive restarts, are auditable in SQL, or can be expressed as a sequence/graph of SQL steps. It removes many external moving parts (cron, workers, queues) and is especially attractive for embedding/ETL pipelines and database-driven automation.

Look elsewhere if you cannot install extensions or require heavy in-memory arbitrary application logic that doesn’t map to SQL (those steps need to be wrapped as SQL-callable functions or HTTP endpoints). The background worker role must be a superuser, so multi-tenant or highly restricted managed environments may require extra operational controls.

Where It Fits

Think of pg_durable as an alternative to glue-layer orchestrators (cron+jobs tables, lightweight workers) and a complement to broader orchestrators (Airflow, Temporal) when you prefer state locality. Use it to reduce latency and complexity for database-centric pipelines; keep a general orchestrator when workflows must tightly coordinate heterogeneous external systems.

Information

  • Websitegithub.com
  • AuthorsMicrosoft
  • Published date2026/02/13

Categories

More Items

Guides an LLM agent to build persistent, editable DAG-based data pipelines via typed, incremental mutations instead of free-form scripts. Combines DataFlow-Skills, a Model Context Protocol exposing live operator registry and pipeline state, and a synchronized Web UI; achieves 93.3% end-to-end pass rate on a 12-task benchmark while cutting cost and latency versus script baselines.

GitHub
AI Deploy2026

Turns a PC, Mac, or Linux machine into a private AI server with one-command installers: local LLM inference, a ChatGPT-style web UI, voice, agents, RAG, workflows, image generation, hardware-aware model selection, and optional cloud/hybrid modes.

GitHub
AI Deploy2026

Deploy and manage applications and containers to your own servers or Openship Cloud from a single desktop, web, or CLI interface. Built-in CI/CD with push-to-deploy and preview environments, automatic SSL, managed databases, CDN, backups, and multi-node portability for VPS-to-production workflows.