mirror of https://github.com/go-gitea/gitea.git
Actions FetchTask concurrently picked jobs is an error for the runner
* Before this Gitea claimed no job is available to be picked in this case * The runner had to wait for an external taskversion increment * Now act_runner is notified about an error and retries the request later without updating its taskversionpull/33497/head
parent
09a3b07f10
commit
0395d5c9f5
|
@ -317,7 +317,7 @@ func CreateTaskForRunner(ctx context.Context, runner *ActionRunner) (*ActionTask
|
||||||
if n, err := UpdateRunJob(ctx, job, builder.Eq{"task_id": 0}); err != nil {
|
if n, err := UpdateRunJob(ctx, job, builder.Eq{"task_id": 0}); err != nil {
|
||||||
return nil, false, err
|
return nil, false, err
|
||||||
} else if n != 1 {
|
} else if n != 1 {
|
||||||
return nil, false, nil
|
return nil, false, fmt.Errorf("other runner picked up our job")
|
||||||
}
|
}
|
||||||
|
|
||||||
task.Job = job
|
task.Job = job
|
||||||
|
|
Loading…
Reference in New Issue