File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -441,12 +441,6 @@ func Rerun(ctx *context_module.Context) {
441
441
return
442
442
}
443
443
444
- if err := run .LoadAttributes (ctx ); err != nil {
445
- ctx .ServerError ("run.LoadAttributes" , err )
446
- return
447
- }
448
- notify_service .WorkflowRunStatusUpdate (ctx , run .Repo , run .TriggerUser , run )
449
-
450
444
if run .RawConcurrency != "" {
451
445
var rawConcurrency model.RawConcurrency
452
446
if err := yaml .Unmarshal ([]byte (run .RawConcurrency ), & rawConcurrency ); err != nil {
@@ -482,6 +476,12 @@ func Rerun(ctx *context_module.Context) {
482
476
ctx .ServerError ("UpdateRun" , err )
483
477
return
484
478
}
479
+
480
+ if err := run .LoadAttributes (ctx ); err != nil {
481
+ ctx .ServerError ("run.LoadAttributes" , err )
482
+ return
483
+ }
484
+ notify_service .WorkflowRunStatusUpdate (ctx , run .Repo , run .TriggerUser , run )
485
485
}
486
486
487
487
if jobIndexStr == "" { // rerun all jobs
You can’t perform that action at this time.
0 commit comments