feat: allow overriding the scheduler globally

Being able to override globally is useful for cases where a user will _always_ want their applications to be globally distributed
This commit is contained in:
Jose Diaz-Gonzalez committed 2018-09-30 21:36:53 -04:00
1 parent fabb18c55c
commit ed190527ce
12 files changed
+31 -20

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ scheduler-docker-local-check-deploy() {
local trigger="scheduler-docker-local-check-deploy"
local APP="$1"; local DOKKU_APP_CONTAINER_ID="$2"; local DOKKU_APP_CONTAINER_TYPE="$3"; local DOKKU_APP_LISTEN_PORT="$4"; local DOKKU_APP_LISTEN_IP="$5"
local DOKKU_SCHEDULER=$(config_get "$APP" DOKKU_SCHEDULER || echo "docker-local")
local DOKKU_SCHEDULER=$(get_app_scheduler "$APP")
if [[ "$DOKKU_SCHEDULER" != "docker-local" ]]; then
return
fi