Skip to content

Self-improving AI Employees for everyone

feat(temporal): flip default backend to postgres

trohitgc7208a6ab055
diff --git a/.env.template b/.env.template
index 390e558c..4f73f26d 100644
--- a/.env.template
+++ b/.env.template
@@ -47,7 +47,7 @@ TEMPORAL_NAMESPACE=default
TEMPORAL_TASK_QUEUE=machina-tasks
TEMPORAL_PER_TYPE_DISPATCH=true
TEMPORAL_AGENT_WORKFLOW_ENABLED=true
-TEMPORAL_BACKEND=sqlite
+TEMPORAL_BACKEND=postgres
# Data directory (base for all persistent storage: DBs, workspaces, logs)
DATA_DIR=data
diff --git a/server/core/config.py b/server/core/config.py
index 50fce7dd..b1f1b07f 100644
--- a/server/core/config.py
+++ b/server/core/config.py
@@ -88,11 +88,15 @@ class Settings(BaseSettings):
)
# Persistence backend for the supervised Temporal cluster.
- # 'sqlite' (dev default) — single ServiceSpec runs `temporal api`.
- # 'postgres' (prod) — pgserver + temporal-server binary with
- # YAML config managed by services/temporal/.
+ # 'postgres' (default) — pgserver + temporal-server binary with
+ # YAML config managed by services/temporal/.
+ # Cross-platform via pip-installed binaries.
+ # 'sqlite' — single ServiceSpec running `temporal api`.
+ # Lighter dev path; in-process SQLite, lost on
+ # restart. Set when you need fast iteration
+ # and don't care about workflow durability.
temporal_backend: Literal["sqlite", "postgres"] = Field(
- default="sqlite", env="TEMPORAL_BACKEND",
+ default="postgres", env="TEMPORAL_BACKEND",
)
# Internal Temporal service gRPC ports — exposed for the YAML config
# renderer and the runtime's readiness probe. Defaults match the