You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package service
|
|
|
|
import (
|
|
"dubbo.apache.org/dubbo-go/v3/config"
|
|
"github.com/robfig/cron/v3"
|
|
)
|
|
|
|
func Task(c *cron.Cron) {
|
|
if config.GetConsumerService("ArtworkClientImpl") != nil {
|
|
_, _ = c.AddFunc("@every 5m", func() {
|
|
|
|
})
|
|
}
|
|
}
|