mirror of
https://github.com/go-gitea/gitea.git
synced 2025-01-20 10:54:32 +01:00
fix schedule
This commit is contained in:
parent
eb43091e06
commit
81a7899fde
@ -143,6 +143,20 @@ func CreateScheduleTask(ctx context.Context, cron *actions_model.ActionSchedule)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
wfRawConcurrency, err := jobparser.ReadWorkflowRawConcurrency(cron.Content)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if wfRawConcurrency != nil {
|
||||
wfConcurrencyGroup, wfConcurrencyCancel, err := EvaluateWorkflowConcurrency(run, wfRawConcurrency, vars)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if wfConcurrencyGroup != "" {
|
||||
run.ConcurrencyGroup = wfConcurrencyGroup
|
||||
run.ConcurrencyCancel = wfConcurrencyCancel
|
||||
}
|
||||
}
|
||||
|
||||
// Insert the action run and its associated jobs into the database
|
||||
if err := InsertRun(ctx, run, workflows); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user