mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 18:57:34 +02:00
feat: pick jobs of the runner only
This commit is contained in:
1 parent
ec673c0e79
commit
04634b9143
2 files changed
+15
-4
No files matched your search
@@ -211,7 +211,7 @@ func (s *Service) UpdateLog(
|
||||
}
|
||||
|
||||
func (s *Service) pickTask(ctx context.Context, runner *bots_model.Runner) (*runnerv1.Task, bool, error) {
|
||||
t, ok, err := bots_model.CreateTaskForRunner(runner)
|
||||
t, ok, err := bots_model.CreateTaskForRunner(ctx, runner)
|
||||
if err != nil {
|
||||
return nil, false, fmt.Errorf("CreateTaskForRunner: %w", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user