Browse Source

update cron task

pull/517/head
tzwang 4 months ago
parent
commit
b434fdb5e4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      internal/cron/cron.go

+ 1
- 1
internal/cron/cron.go 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 {


Loading…
Cancel
Save