feat: add support for locking in docker-local commands

This commit is contained in:
Jose Diaz-Gonzalez
2025-09-21 19:10:01 -04:00
parent f38bc64119
commit 20be426125
3 changed files with 55 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ func (t CronTask) DokkuRunCommand() string {
return t.AltCommand
}
return fmt.Sprintf("dokku run --cron-id %s %s %s", t.ID, t.App, t.Command)
return fmt.Sprintf("dokku run --concurrency-policy %s --cron-id %s %s %s", t.ConcurrencyPolicy, t.ID, t.App, t.Command)
}
// FetchCronTasksInput is the input for the FetchCronTasks function