update cron task

This commit is contained in:
tzwang 2025-06-27 17:23:35 +08:00
parent c0db947974
commit b434fdb5e4
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ func AddCronGroup(svc *svc.ServiceContext) {
status.UpdateAutoStoppedInstance(svc)
})
svc.Cron.AddFunc("0 5/5 * * * *", func() {
svc.Cron.AddFunc("1 * * * * *", func() {
queryResource := schedule.NewQueryResourcesLogic(svc.HttpClient.R().Context(), svc)
trainResrc, err := queryResource.QueryResourcesByClusterId(nil, "Train")
if err != nil {