prow/cron/cron.go
func (c *Cron) removeJob(name string) error {
	job, ok := c.jobs[name]
	if !ok {
		return fmt.Errorf("job %s has not been added to cronAgent yet", name)
	}
	c.cronAgent.Remove(job.entryID)
	delete(c.jobs, name)
	c.logger.Infof("Removed previous cron job %s.", name)
	return nil
}
func (c *Cron) removeJob(name string) error {
	job, ok := c.jobs[name]
	if !ok {
		return fmt.Errorf("job %s has not been added to cronAgent yet", name)
	}
	c.cronAgent.Remove(job.entryID)
	delete(c.jobs, name)
	c.logger.Infof("Removed previous cron job %s.", name)
	return nil
}
func ( c * Cron ) removeJob ( name string ) error { job , ok := c . jobs [ name ] if ! ok { return fmt . Errorf ( " " , name ) } c . cronAgent . Remove ( job . entryID ) delete ( c . jobs , name ) c . logger . Infof ( " " , name ) return nil }
// removeJob removes the job from cronAgent
removeJob removes the job from cronAgent