You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

cron.go 358 B

1234567891011121314151617
  1. package cron
  2. import (
  3. "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
  4. )
  5. func AddCronGroup(svc *svc.ServiceContext) {
  6. // 同步任务信息到core端
  7. svc.Cron.AddFunc("*/5 * * * * ?", func() {
  8. SyncParticipantRpc(svc)
  9. })
  10. // 删除三天前的监控信息
  11. svc.Cron.AddFunc("*/5 * * * * ?", func() {
  12. ClearMetricsData(svc)
  13. })
  14. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.