Skip to content

Commit

Permalink
feat: worker选取及恢复机制优化 TencentBlueKing#311
Browse files Browse the repository at this point in the history
  • Loading branch information
flyy1012 committed Nov 22, 2024
1 parent 4642326 commit 7f70df0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ func (m *Mgr) retrySendToolChains(ctx context.Context) {
blog.Infof("remote: run toolchain check for work(%s) canceled by context", m.work.ID())
return
case <-ticker.C:
if m.failFileSendMap == nil {
if m.failFileSendMap == nil || len(m.failFileSendMap) == 0 {
continue
}
handler := m.remoteWorker.Handler(0, nil, nil, nil)
Expand Down Expand Up @@ -684,7 +684,7 @@ func (m *Mgr) retryFailFiles(ctx context.Context) {
blog.Infof("remote: run failfiles check for work(%s) canceled by context", m.work.ID())
return
case <-ticker.C:
if m.failFileSendMap == nil {
if m.failFileSendMap == nil || len(m.failFileSendMap) == 0 {
continue
}
hosts := m.work.Resource().GetHosts()
Expand Down

0 comments on commit 7f70df0

Please sign in to comment.