Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
feat(temporal): flip default backend to postgres
trohitgc7208a6ab055
diff --git a/.env.template b/.env.templateindex 390e558c..4f73f26d 100644--- a/.env.template+++ b/.env.template@@ -47,7 +47,7 @@ TEMPORAL_NAMESPACE=defaultTEMPORAL_TASK_QUEUE=machina-tasksTEMPORAL_PER_TYPE_DISPATCH=trueTEMPORAL_AGENT_WORKFLOW_ENABLED=true-TEMPORAL_BACKEND=sqlite+TEMPORAL_BACKEND=postgres# Data directory (base for all persistent storage: DBs, workspaces, logs)DATA_DIR=datadiff --git a/server/core/config.py b/server/core/config.pyindex 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