diff --git a/business/jxstore/cms/cms.go b/business/jxstore/cms/cms.go index c1e92411a..f61780c34 100644 --- a/business/jxstore/cms/cms.go +++ b/business/jxstore/cms/cms.go @@ -148,7 +148,7 @@ func InitServiceInfo(version string, buildTime time.Time, gitCommit string) { } } -func GetServiceInfo(ctx *jxcontext.Context) interface{} { +func GetServiceInfo(ctx *jxcontext.Context) map[string]interface{} { return serviceInfo } diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index 0e9dde7aa..b3f9a987d 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -34,6 +34,9 @@ const ( ) var ( + dailyHeartbeat = []string{ + "09:00:00", + } dailyWorkTimeList = []string{ "20:30:00", } @@ -158,6 +161,9 @@ func Init() { ScheduleTimerFunc("GetCheckVendorCookie", func() { event.GetCheckVendorCookie(jxcontext.AdminCtx, []int{0, 1, 3, 102}, true) }, checkCookieList) + ScheduleTimerFunc("每日报警心跳", func() { + globals.SugarLogger.Warnf("每日报警心跳,这不是报警。启动时间:%s", cms.GetServiceInfo(jxcontext.AdminCtx)["startupTime"]) + }, dailyHeartbeat) } ScheduleTimerFunc("AutoSaleStoreSku", func() { cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil, false) diff --git a/business/jxutils/tasksch/parallel_task.go b/business/jxutils/tasksch/parallel_task.go index 00723b8f5..50b30da1b 100644 --- a/business/jxutils/tasksch/parallel_task.go +++ b/business/jxutils/tasksch/parallel_task.go @@ -10,7 +10,7 @@ import ( ) const ( - DefParallelCount = 10 + DefParallelCount = 5 MaxParallelCount = 50 )