feat: task can report step and final result

This commit is contained in:
fuxiaohei authored and Jason Song committed 2022-11-24 15:37:14 +08:00
1 parent 9be39b8cd4
commit 6030610c04
7 files changed
+219 -36

No files matched your search

+7
View File
@@ -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)
}