diff --git a/container/files/init-container.sh b/container/files/init-container.sh index 182f0bc9..c1fc3074 100755 --- a/container/files/init-container.sh +++ b/container/files/init-container.sh @@ -116,9 +116,9 @@ echo "[$(date +"%Y-%m-%dT%H:%M:%S%z")] Ensuring state table has correct indexes. /opt/bin/console system:apikey -q if [ 0 = "${DISABLE_CRON}" ] && [ 0 = "${WS_DISABLE_CRON}" ]; then - if [ -f "/tmp/job-runner.pid" ]; then + if [ -f "/tmp/ws-job-runner.pid" ]; then echo "[$(date +"%Y-%m-%dT%H:%M:%S%z")] Found pre-existing tasks scheduler pid file. Removing it." - rm -f "/tmp/job-runner.pid" + rm -f "/tmp/ws-job-runner.pid" fi echo "[$(date +"%Y-%m-%dT%H:%M:%S%z")] Starting tasks scheduler." diff --git a/container/files/job-runner.sh b/container/files/job-runner.sh index 117ede1f..74b174c1 100644 --- a/container/files/job-runner.sh +++ b/container/files/job-runner.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -PID="/tmp/job-runner.pid" +PID="/tmp/ws-job-runner.pid" # shellcheck disable=SC2064 trap 'rm -f "${PID}"; exit' EXIT SIGQUIT SIGINT SIGTERM ERR diff --git a/frontend/pages/tasks.vue b/frontend/pages/tasks.vue index 03546e57..b056117b 100644 --- a/frontend/pages/tasks.vue +++ b/frontend/pages/tasks.vue @@ -7,6 +7,13 @@
+ +
+ + To restart the task runner, you have to restart the container. +
+