From d845403a4c507e58ae9820a40989c7686aaa4d02 Mon Sep 17 00:00:00 2001 From: Sebastian Rieger Date: Mon, 16 May 2022 16:09:51 +0200 Subject: [PATCH] set start retries in supervisord to unlimited to avoid broken backend if app-service instance containing the database is later running than the API, in rare cases this can happen though the service instance is started before the API instances --- faafo/contrib/install-aws.sh | 6 ++++-- faafo/contrib/install.sh | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/faafo/contrib/install-aws.sh b/faafo/contrib/install-aws.sh index d285fba..9f402f1 100644 --- a/faafo/contrib/install-aws.sh +++ b/faafo/contrib/install-aws.sh @@ -165,7 +165,8 @@ if [[ -e /etc/os-release ]]; then faafo_api=" [program:faafo_api] command=$(which faafo-api) -priority=10" +priority=10 +startretries=0" if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then echo "$faafo_api" | sudo tee -a /etc/supervisor/conf.d/faafo.conf @@ -181,7 +182,8 @@ priority=10" faafo_worker=" [program:faafo_worker] command=$(which faafo-worker) -priority=20" +priority=20 +startretries=0" if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then echo "$faafo_worker" | sudo tee -a /etc/supervisor/conf.d/faafo.conf diff --git a/faafo/contrib/install.sh b/faafo/contrib/install.sh index 8c9f348..03c9228 100644 --- a/faafo/contrib/install.sh +++ b/faafo/contrib/install.sh @@ -159,7 +159,8 @@ if [[ -e /etc/os-release ]]; then faafo_api=" [program:faafo_api] command=$(which faafo-api) -priority=10" +priority=10 +startretries=0" if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then echo "$faafo_api" | sudo tee -a /etc/supervisor/conf.d/faafo.conf @@ -175,7 +176,8 @@ priority=10" faafo_worker=" [program:faafo_worker] command=$(which faafo-worker) -priority=20" +priority=20 +startretries=0" if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then echo "$faafo_worker" | sudo tee -a /etc/supervisor/conf.d/faafo.conf