From f5539ae641c2b3cdeced0e2accd9e6fad5e006b8 Mon Sep 17 00:00:00 2001 From: Yihang Wang Date: Thu, 5 Sep 2024 23:37:11 +0800 Subject: [PATCH] Update scheduler.go to add support for recording status to a hyphen file --- scheduler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scheduler.go b/scheduler.go index f16f183..1fdece2 100644 --- a/scheduler.go +++ b/scheduler.go @@ -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