Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
fix: Temporal Docker image, foreground mode, embedded worker
trohitg6d96b6c6801d
diff --git a/docker-compose.prod.yml b/docker-compose.prod.ymlindex 55a33542..43e9e3c1 100644--- a/docker-compose.prod.yml+++ b/docker-compose.prod.yml@@ -17,22 +17,21 @@ services:# Temporal Server (durable workflow execution)temporal:- image: temporalio/auto-setup:latest+ image: temporalio/temporal:latestcontainer_name: machina-temporal+ user: rootnetworks:- app-networkrestart: alwayshealthcheck:- test: ["CMD", "tctl", "--address", "temporal:7233", "cluster", "health"]+ test: ["CMD", "temporal", "operator", "cluster", "health", "--address", "temporal:7233"]interval: 15stimeout: 5sretries: 5start_period: 30senvironment:- - DB=sqlite- - SQLITE_DB_PATH=/data/temporal.db- - TEMPORAL_ADDRESS=temporal:7233- TZ=UTC+ command: ["server", "start-dev", "--ip", "0.0.0.0", "--db-filename", "/data/temporal.db"]volumes:- temporal-data:/datadiff --git a/docker-compose.yml b/docker-compose.ymlindex 3e9e8a08..f13696ca 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -21,8 +21,9 @@ services:# Temporal Server (durable workflow execution)temporal:- image: temporalio/auto-setup:latest+ image: temporalio/temporal:latestcontainer_name: machina-temporal+ user: rootprofiles:- temporalports:@@ -32,16 +33,14 @@ services:- app-networkrestart: unless-stoppedhealthcheck:- test: ["CMD", "tctl", "--address", "temporal:7233", "cluster", "health"]+ test: ["CMD", "temporal", "operator", "cluster", "health", "--address", "temporal:7233"]interval: 15stimeout: 5sretries: 5start_period: 30senvironment:- - DB=sqlite- - SQLITE_DB_PATH=/data/temporal.db- - TEMPORAL_ADDRESS=temporal:7233- TZ=UTC+ command: ["server", "start-dev", "--ip", "0.0.0.0", "--db-filename", "/data/temporal.db"]volumes:- temporal-data:/datadiff --git a/package.json b/package.jsonindex a9ea2351..7e585984 100644--- a/package.json+++ b/package.json@@ -66,7 +66,7 @@"client:start": "cd client && npm run start","python:start": "cd server && uv run uvicorn main:app --host 127.0.0.1 --port 3010 --log-level warning","python:daemon": "cd server && uv run uvicorn main:app --host 0.0.0.0 --port 3010 --log-level warning",- "temporal:start": "temporal-server start",+ "temporal:start": "temporal-server start --foreground","temporal:stop": "temporal-server stop","temporal:status": "temporal-server status","temporal:worker": "cd server && uv run python -m services.temporal.worker",diff --git a/scripts/dev.js b/scripts/dev.jsindex d76bfa86..256ab8f0 100644--- a/scripts/dev.js+++ b/scripts/dev.js@@ -89,7 +89,7 @@ async function main() {if (!skipWhatsApp) services.push('npm:whatsapp:api');if (config.temporalEnabled) {services.push('npm:temporal:start');- services.push('npm:temporal:worker');+ // Worker runs embedded in the backend (main.py TemporalWorkerManager)}// Ready-detection patterns for each servicediff --git a/scripts/start.js b/scripts/start.jsindex 38b2681c..2f5c1af3 100755--- a/scripts/start.js+++ b/scripts/start.js@@ -62,7 +62,7 @@ async function main() {if (!skipWhatsApp) services.push('npm:whatsapp:api');if (config.temporalEnabled) {services.push('npm:temporal:start');- services.push('npm:temporal:worker');+ // Worker runs embedded in the backend (main.py TemporalWorkerManager)}// Ready-detection patterns for each service@@ -118,7 +118,6 @@ async function main() {if (!skipWhatsApp) serviceNames.push('whatsapp');if (config.temporalEnabled) {serviceNames.push('temporal-server');- serviceNames.push('temporal-worker');}const proc = spawn('npx', [