repo_description: KubeOperator 是一个开源的轻量级 Kubernetes 发行版，专注于帮助企业规划、部署和运营生产级别的 K8s 集群。
repo_topics: ansible containers docker k8s kubeapps kubernetes kubernetes-installer lightweight openstack paas terraform vmware-vsphere
code: package cron
  
  import (
  	"fmt"
  	"github.com/robfig/cron"
  	"testing"
  )
  
  func TestInitCronPhase_Init(t *testing.T) {
  	Cron := cron.New()
  
  	Cron.AddFunc("@every 10s", func() {
  		fmt.Println("job1 run")
  	})
  
  	Cron.Start()
  	Cron.AddFunc("@every 10s", func() {
  		fmt.Println("job2 run")
  	})
  	select {
  
  	}
  }
  