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
|
@ -93,5 +93,12 @@ func (p *Poller) poll(ctx context.Context, thread int) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// FIXME: for testing task
|
||||
// stage.Id = 111
|
||||
// stage.BuildId = 1222
|
||||
|
||||
// set client to context, so that the stage can use it to
|
||||
ctx = client.WithClient(ctx, p.Client)
|
||||
|
||||
return p.Dispatch(ctx, stage)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue