refactor: move log retrieval to docker-local scheduler

This change will allow other schedulers to implement log retrieval as necessary for the platform specified.

Closes #3487
This commit is contained in:
Jose Diaz-Gonzalez
2019-04-17 03:04:43 -04:00
parent 13e3950f4a
commit 662c8c2831
5 changed files with 102 additions and 34 deletions

View File

@@ -264,6 +264,7 @@ get_app_scheduler() {
declare APP="$1"
local DOKKU_APP_SCHEDULER DOKKU_GLOBAL_SCHEDULER DOKKU_SCHEDULER
source "$PLUGIN_AVAILABLE_PATH/config/functions"
[[ -n "$APP" ]] && DOKKU_APP_SCHEDULER="$(config_get "$APP" DOKKU_SCHEDULER || true)"
DOKKU_GLOBAL_SCHEDULER="$(config_get --global DOKKU_SCHEDULER || true)"