This commit is contained in:
ChristopherHX 2025-03-11 16:39:38 -03:00 committed by GitHub
commit 2d8078e00a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 {
return nil, false, err
} else if n != 1 {
return nil, false, nil
return nil, false, fmt.Errorf("other runner picked up our job")
}
task.Job = job