Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getTimeHashInMinutes (0.19 sec)

  1. pkg/controller/cronjob/utils.go

    		},
    	}
    	cj.Spec.JobTemplate.Spec.DeepCopyInto(&job.Spec)
    	return job, nil
    }
    
    // getTimeHash returns Unix Epoch Time in minutes
    func getTimeHashInMinutes(scheduledTime time.Time) int64 {
    	return scheduledTime.Unix() / 60
    }
    
    // byJobStartTime sorts a list of jobs by start timestamp, using their names as a tie breaker.
    type byJobStartTime []*batchv1.Job
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. pkg/controller/cronjob/cronjob_controllerv2.go

    	t := nextScheduleTimeDuration(cronJob, now, sched)
    	return t, updateStatus, nil
    }
    
    func getJobName(cj *batchv1.CronJob, scheduledTime time.Time) string {
    	return fmt.Sprintf("%s-%d", cj.Name, getTimeHashInMinutes(scheduledTime))
    }
    
    // cleanupFinishedJobs cleanups finished jobs created by a CronJob
    // It returns a bool to indicate an update to api-server is needed
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
Back to top