Skip to content

Commit

Permalink
do not exit monitorremotestdout too early in case of failed job
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterseth committed Nov 17, 2021
1 parent c70c1ef commit c35e337
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/workceptor/remote_work.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,6 @@ func (rw *remoteUnit) monitorRemoteStdout(mw *utils.JobContext) {
status := rw.Status()
diskStdoutSize := stdoutSize(rw.UnitDir())
remoteStdoutSize := status.StdoutSize
if status.State == WorkStateFailed {
return
}
if IsComplete(status.State) && diskStdoutSize >= remoteStdoutSize {
return
} else if diskStdoutSize < remoteStdoutSize {
Expand Down

0 comments on commit c35e337

Please sign in to comment.