feat: task can report step and final result
This commit is contained in:
parent
9be39b8cd4
commit
6030610c04
7 changed files with 219 additions and 36 deletions
|
@ -29,10 +29,7 @@ func (s *Runner) Run(ctx context.Context, stage *runnerv1.Stage) error {
|
|||
WithField("runner.BuildID", stage.BuildId)
|
||||
|
||||
l.Info("start running pipeline")
|
||||
// TODO: docker runner with stage data
|
||||
// task.Run is blocking, so we need to use goroutine to run it in background
|
||||
// return task metadata and status to the server
|
||||
task := NewTask()
|
||||
|
||||
return task.Run(ctx)
|
||||
// TODO: use ctx to transfer usage information
|
||||
return startTask(stage.BuildId, ctx)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue