chore(runner): update runner status when start job

This commit is contained in:
Bo-Yi Wu
2022-10-14 10:55:49 +08:00
committed by Jason Song
parent d4c1515f4e
commit 7bebd2bbad
3 changed files with 32 additions and 7 deletions

View File

@ -170,15 +170,12 @@ func (r *Reporter) Close(lastWords string) error {
}
r.stateM.Unlock()
if err := retry.Do(func() error {
return retry.Do(func() error {
if err := r.ReportLog(true); err != nil {
return err
}
return r.ReportState()
}, retry.Context(r.ctx)); err != nil {
return err
}
return nil
}, retry.Context(r.ctx))
}
func (r *Reporter) ReportLog(noMore bool) error {