Last active
March 7, 2019 19:01
-
-
Save d-kuro/31b8776078f66f25011afe067f9c344e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// from: https://github.com/kubernetes/kubernetes/blob/87f9429087d4e31201412548517d36e83abebc8d/pkg/controller/cronjob/cronjob_controller.go#L89-L97 | |
// Run the main goroutine responsible for watching and syncing jobs. | |
func (jm *CronJobController) Run(stopCh <-chan struct{}) { | |
defer utilruntime.HandleCrash() | |
klog.Infof("Starting CronJob Manager") | |
// Check things every 10 second. | |
go wait.Until(jm.syncAll, 10*time.Second, stopCh) | |
<-stopCh | |
klog.Infof("Shutting down CronJob Manager") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment