Skip to content

Commit

Permalink
Update scheduler.go to add support for recording status to a hyphen file
Browse files Browse the repository at this point in the history
  • Loading branch information
WangYihang committed Sep 5, 2024
1 parent 36da724 commit f5539ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@ func New(options ...schedulerOption) *Scheduler {
}
}
go svr.statusManager.Start()
svr.recorderWg.Add(3)
svr.recorderWg.Add(4)
chanRecorder(svr.resultFilePath, svr.ResultChan(), svr.recorderWg)
chanRecorder(svr.statusFilePath, svr.StatusChan(), svr.recorderWg)
chanRecorder("-", svr.StatusChan(), svr.recorderWg)
metadataChan := make(chan schedulerMetadata)
chanRecorder(svr.metadataFilePath, metadataChan, svr.recorderWg)
metadataChan <- svr.metadata
Expand Down

0 comments on commit f5539ae

Please sign in to comment.