edb_info_stat.go 656 B

1234567891011121314151617181920212223
  1. package data_stat
  2. import (
  3. "context"
  4. "errors"
  5. "eta/eta_task/services/data"
  6. "eta/eta_task/utils"
  7. )
  8. // SetEdbSourceStatTask 设置数据源指标更新情况定时任务
  9. func SetEdbSourceStatTask(cont context.Context) (err error) {
  10. utils.FileLog.Info("SetEdbSourceStatTask 开始")
  11. resp, err := data.SetEdbSourceStat()
  12. if err != nil {
  13. utils.FileLog.Info("SetEdbSourceStatTask 定时更新出错 Err:" + err.Error())
  14. return errors.New("SetEdbSourceStat Err:" + err.Error())
  15. }
  16. if resp.Ret != 200 {
  17. return errors.New("SetEdbSourceStat Err:" + resp.Msg + ";ErrMsg:" + resp.ErrMsg)
  18. }
  19. utils.FileLog.Info("SetEdbSourceStatTask 结束")
  20. return
  21. }