Add test for cron concurrency policy
This commit is contained in:
committed by
Jose Diaz-Gonzalez
parent
b8f32f6ea4
commit
983115c827
@@ -42,7 +42,7 @@ func CommandList(appName string, format string) error {
|
||||
}
|
||||
|
||||
if format == "stdout" {
|
||||
output := []string{"ID | Schedule | Maintenance | Command"}
|
||||
output := []string{"ID | Schedule | Concurrency | Maintenance | Command"}
|
||||
for _, task := range tasks {
|
||||
maintenance := "false"
|
||||
if task.Maintenance {
|
||||
@@ -52,7 +52,7 @@ func CommandList(appName string, format string) error {
|
||||
maintenance = "true (app)"
|
||||
}
|
||||
}
|
||||
output = append(output, fmt.Sprintf("%s | %s | %s | %s", task.ID, task.Schedule, maintenance, task.Command))
|
||||
output = append(output, fmt.Sprintf("%s | %s | %s | %t | %s", task.ID, task.Schedule, task.ConcurrencyPolicy, maintenance, task.Command))
|
||||
}
|
||||
|
||||
result := columnize.SimpleFormat(output)
|
||||
|
||||
@@ -66,7 +66,6 @@ trigger-scheduler-docker-local-scheduler-run() {
|
||||
if [[ -n "$DOKKU_CONCURRENCY_POLICY" ]]; then
|
||||
concurrency_policy="$DOKKU_CONCURRENCY_POLICY"
|
||||
fi
|
||||
concurrency_policy="$DOKKU_CONCURRENCY_POLICY"
|
||||
DOCKER_ARGS+=" --label=com.dokku.concurrency-policy=$concurrency_policy"
|
||||
|
||||
if [[ "$concurrency_policy" == "forbid" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user