feat: fill default task runner

pull/2/head
Gitea 2022-08-23 20:47:14 +08:00 committed by Jason Song
parent c5edbbd004
commit 3281c6637d
1 changed files with 4 additions and 2 deletions

View File

@ -35,6 +35,8 @@ func (s *Runner) run(ctx context.Context, stage *runnerv1.Stage) error {
l.Info("start running pipeline") l.Info("start running pipeline")
// TODO: docker runner with stage data // TODO: docker runner with stage data
// task.Run is blocking, so we need to use goroutine to run it in backgroud
return nil // return task metadata and status to the server
task := NewTask()
return task.Run(ctx)
} }