feat: implement ps:retire

This commit is contained in:
Jose Diaz-Gonzalez
2020-11-21 20:56:59 -05:00
parent 5fd1772c3a
commit 53a76b1353
5 changed files with 35 additions and 5 deletions

View File

@@ -74,8 +74,13 @@ func GetAppScheduler(appName string) string {
return value
}
b, _ = PlugnTriggerOutput("config-get-global", []string{"DOKKU_SCHEDULER"}...)
value = string(b[:])
return GetGlobalScheduler()
}
// GetGlobalScheduler fetchs the global scheduler
func GetGlobalScheduler() string {
b, _ := PlugnTriggerOutput("config-get-global", []string{"DOKKU_SCHEDULER"}...)
value := string(b[:])
if value != "" {
return value
}