fix: ensure the null scheduler reports the app as running when in use

This commit is contained in:
Jose Diaz-Gonzalez committed 2021-10-23 13:32:02 -04:00
1 parent f949fe2a49
commit c9d10b8a2b
1 file changed
+20
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
trigger-scheduler-null-app-status() {
declare desc="fetches the status for a given app"
declare trigger="scheduler-app-status"
declare DOKKU_SCHEDULER="$1" APP="$2"
if [[ "$DOKKU_SCHEDULER" != "null" ]]; then
return
fi
local PROCS=1 RUNNING="true"
echo "$PROCS $RUNNING"
}
trigger-scheduler-null-app-status "$@"