From 4d9e712932cf1edcc2c79f06268218c0f70b4ced Mon Sep 17 00:00:00 2001 From: Scott Robinson Date: Wed, 17 Jun 2026 20:37:51 +0000 Subject: [PATCH] fix(self-hosting): add missing worker-executions service to compose generator Appwrite 1.9.0 moved execution persistence to a dedicated executions worker (entrypoint `worker-executions`) that consumes the `v1-executions` queue. The generated docker-compose only includes the `schedule-executions` scheduler, so nothing drains `v1-executions` and scheduled/async function executions are never written to the database (sync executions work because the API persists them inline). Add the `appwrite-worker-executions` service so self-hosted installs record executions correctly. Fixes #3054 Co-Authored-By: Claude Opus 4.8 (1M context) --- .../compose-generator/composeData.ts | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/lib/components/compose-generator/composeData.ts b/src/lib/components/compose-generator/composeData.ts index ba23c21d4f4..57740a34369 100644 --- a/src/lib/components/compose-generator/composeData.ts +++ b/src/lib/components/compose-generator/composeData.ts @@ -664,6 +664,35 @@ services: - _APP_DOCKER_HUB_PASSWORD - _APP_LOGGING_CONFIG + appwrite-worker-executions: + image: appwrite/appwrite:1.9.0 + entrypoint: worker-executions + <<: *x-logging + container_name: appwrite-worker-executions + restart: unless-stopped + networks: + - appwrite + depends_on: + redis: + condition: service_healthy + __DB_SERVICE__: + condition: service_healthy + environment: + - _APP_ENV + - _APP_WORKER_PER_CORE + - _APP_OPENSSL_KEY_V1 + - _APP_DB_ADAPTER + - _APP_DB_HOST + - _APP_DB_PORT + - _APP_DB_SCHEMA + - _APP_DB_USER + - _APP_DB_PASS + - _APP_REDIS_HOST + - _APP_REDIS_PORT + - _APP_REDIS_USER + - _APP_REDIS_PASS + - _APP_LOGGING_CONFIG + appwrite-worker-mails: image: appwrite/appwrite:1.9.0 entrypoint: worker-mails