From dfc33bf5014c0718fe662db4f52050bc6f9feea5 Mon Sep 17 00:00:00 2001 From: Evgenii Alekseev Date: Sat, 30 Dec 2023 17:01:49 +0200 Subject: [PATCH] update recipes --- recipes/distributed/compose.yml | 4 ++++ recipes/distributed/service.ini | 2 +- recipes/distributed/worker.ini | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/recipes/distributed/compose.yml b/recipes/distributed/compose.yml index db863ace..e510f023 100644 --- a/recipes/distributed/compose.yml +++ b/recipes/distributed/compose.yml @@ -77,6 +77,10 @@ services: interval: 10s start_period: 30s + depends_on: + backend: + condition: service_healthy + command: web configs: diff --git a/recipes/distributed/service.ini b/recipes/distributed/service.ini index 98685076..e03123f3 100644 --- a/recipes/distributed/service.ini +++ b/recipes/distributed/service.ini @@ -2,7 +2,7 @@ target = configuration [build] -workers = http://worker:8080 http://worker:8080 +triggers = ahriman.core.distributed.WorkerLoaderTrigger ahriman.core.gitremote.RemotePullTrigger ahriman.core.report.ReportTrigger ahriman.core.upload.UploadTrigger ahriman.core.gitremote.RemotePushTrigger [status] username = demo diff --git a/recipes/distributed/worker.ini b/recipes/distributed/worker.ini index 653e1a4f..c04d5f6c 100644 --- a/recipes/distributed/worker.ini +++ b/recipes/distributed/worker.ini @@ -2,7 +2,7 @@ target = configuration [build] -triggers = ahriman.core.upload.UploadTrigger ahriman.core.report.ReportTrigger +triggers = ahriman.core.distributed.WorkerTrigger ahriman.core.upload.UploadTrigger ahriman.core.report.ReportTrigger [status] address = http://backend:8080 @@ -20,3 +20,6 @@ wait_timeout = 0 target = remote-service [remote-service] + +[worker] +address = http://$HOSTNAME:8080