From 440be52405eb23d7c7b8b3556de43c124ccbe2ed Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Fri, 23 Jan 2026 09:47:54 +0530 Subject: [PATCH] chore: update executor healthcheck to improve flakiness --- docker-compose.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index fdcfce6ff6..0de7cc73c6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -639,9 +639,12 @@ services: - ./app:/usr/src/code/app - ./src:/usr/src/code/src depends_on: - - redis - - mariadb - - openruntimes-executor + redis: + condition: service_started + mariadb: + condition: service_started + openruntimes-executor: + condition: service_healthy environment: - _APP_ENV - _APP_WORKER_PER_CORE @@ -1126,6 +1129,12 @@ services: - OPR_EXECUTOR_STORAGE_WASABI_SECRET=$_APP_STORAGE_WASABI_SECRET - OPR_EXECUTOR_STORAGE_WASABI_REGION=$_APP_STORAGE_WASABI_REGION - OPR_EXECUTOR_STORAGE_WASABI_BUCKET=$_APP_STORAGE_WASABI_BUCKET + healthcheck: + test: ["CMD-SHELL", "curl -fsS -H \"Authorization: Bearer $$OPR_EXECUTOR_SECRET\" http://localhost/v1/health >/dev/null"] + interval: 5s + timeout: 3s + retries: 20 + start_period: 5s mariadb: image: mariadb:10.11 # fix issues when upgrading using: mysql_upgrade -u root -p