fix: ensure the null scheduler reports the app as running when in use
This commit is contained in:
1 parent
f949fe2a49
commit
c9d10b8a2b
1 file changed
+20
Executable
+20
@@ -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 "$@"
|
||||||
Reference in new issue
Block a user