Browse Source

#2624

add log
tags/v1.22.8.2^2
chenyifan01 3 years ago
parent
commit
3c0de19ae8
2 changed files with 4 additions and 0 deletions
  1. +3
    -0
      services/cloudbrain/resource/resource_queue.go
  2. +1
    -0
      services/cloudbrain/resource/resource_specification.go

+ 3
- 0
services/cloudbrain/resource/resource_queue.go View File

@@ -57,6 +57,7 @@ func SyncGrampusQueue(doerId int64) error {
if err != nil {
return err
}
log.Info("SyncGrampusQueue result = %+v", r)
queueUpdateList := make([]models.ResourceQueue, 0)
queueInsertList := make([]models.ResourceQueue, 0)
existIds := make([]int64, 0)
@@ -114,6 +115,8 @@ func SyncGrampusQueueAndSpecs() {
log.Error("PANIC:", combinedErr)
}
}()
log.Info("start to sync grampus queue and specs")
SyncGrampusQueue(0)
SyncGrampusSpecs(0)
log.Info("sync grampus queue and specs finished")
}

+ 1
- 0
services/cloudbrain/resource/resource_specification.go View File

@@ -45,6 +45,7 @@ func SyncGrampusSpecs(doerId int64) error {
if err != nil {
return err
}
log.Info("SyncGrampusSpecs result = %+v", r)
specUpdateList := make([]models.ResourceSpecification, 0)
specInsertList := make([]models.ResourceSpecification, 0)
existIds := make([]int64, 0)


Loading…
Cancel
Save