We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87565f2 commit d3588fdCopy full SHA for d3588fd
bin/_common_setup.sh
@@ -6,9 +6,9 @@ set -e
6
7
CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8
9
-# For multi-worker Gunicorn setups; requires PROMETHEUS_MULTIPROC_DIR set before startup,
10
-# usually from the config file mounted via cloud-automation.
11
if [ -f "/src/gen3-workflow-config.yaml" ]; then
+ # For multi-worker Gunicorn setups; requires PROMETHEUS_MULTIPROC_DIR to be set before startup,
+ # here we assume the config file is mounted at /src via cloud-automation.
12
PROMETHEUS_MULTIPROC_DIR=$(grep 'PROMETHEUS_MULTIPROC_DIR:' /src/gen3-workflow-config.yaml | awk -F': ' '{print $2}' | tr -d '"')
13
else
14
PROMETHEUS_MULTIPROC_DIR=""
0 commit comments