From 9f2092b7c5d0952bac0b80dcf1e41e04f345dd47 Mon Sep 17 00:00:00 2001 From: shenchangbin Date: Thu, 12 Nov 2026 09:57:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(crontab):=20=E6=B7=BB=E5=8A=A0crontab?= =?UTF-8?q?=E5=B0=B1=E7=BB=AA=E4=BA=8B=E4=BB=B6=E5=88=B0=E6=A0=87=E5=87=86?= =?UTF-8?q?=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/runtime/crontab/crontab.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/runtime/crontab/crontab.go b/internal/runtime/crontab/crontab.go index 83b875f..137202d 100644 --- a/internal/runtime/crontab/crontab.go +++ b/internal/runtime/crontab/crontab.go @@ -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()