Compare commits

..
1 Commits
Author SHA1 Message Date
admin 9f2092b7c5 feat(crontab): 添加crontab就绪事件到标准输出 2026-11-12 09:57:05 +08:00
+3
View File
@@ -3,6 +3,7 @@ package crontab
import (
"context"
"fmt"
"os"
"github.com/google/uuid"
"github.com/robfig/cron/v3"
@@ -48,6 +49,8 @@ func (m *Crontab) Start() error {
// }))
c.Start()
// Readiness is independent of application log filtering.
fmt.Fprintln(os.Stdout, `{"event":"crontab_ready"}`)
log.Infof("crontab start")
<-m.options.Context.Done()