You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by as...@apache.org on 2021/06/08 16:06:23 UTC
[airflow-ci-infra] branch main updated: Fix syntax error in
stop-runner-if-no-job.sh (#32)
This is an automated email from the ASF dual-hosted git repository.
ash pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-ci-infra.git
The following commit(s) were added to refs/heads/main by this push:
new 37b3503 Fix syntax error in stop-runner-if-no-job.sh (#32)
37b3503 is described below
commit 37b35032a2fb67405cbe87cd4ed25125607f804b
Author: Ash Berlin-Taylor <as...@firemirror.com>
AuthorDate: Tue Jun 8 17:03:31 2021 +0100
Fix syntax error in stop-runner-if-no-job.sh (#32)
This trailing `fi` on the end would likely cause the Runner.Listener to
be terminated to early.
---
github-runner-ami/packer/files/stop-runner-if-no-job.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/github-runner-ami/packer/files/stop-runner-if-no-job.sh b/github-runner-ami/packer/files/stop-runner-if-no-job.sh
index de95860..9d988de 100644
--- a/github-runner-ami/packer/files/stop-runner-if-no-job.sh
+++ b/github-runner-ami/packer/files/stop-runner-if-no-job.sh
@@ -40,8 +40,7 @@ else
fi
# Wait for it to shut down
-echo "Waiting for main Runner.Listener process to stop"
+echo "Waiting for main Runner.Listener $MAINPID process to stop"
while pgrep --ns $MAINPID -a Runner.Listener; do
sleep 5
done
-fi