Class CronJobSpec


  • public final class CronJobSpec
    extends java.lang.Object
    • Method Detail

      • concurrencyPolicy

        public java.util.Optional<java.lang.String> concurrencyPolicy()
        Returns:
        Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one
      • failedJobsHistoryLimit

        public java.util.Optional<java.lang.Integer> failedJobsHistoryLimit()
        Returns:
        The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.
      • jobTemplate

        public JobTemplateSpec jobTemplate()
        Returns:
        Specifies the job that will be created when executing a CronJob.
      • schedule

        public java.lang.String schedule()
        Returns:
        The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
      • startingDeadlineSeconds

        public java.util.Optional<java.lang.Integer> startingDeadlineSeconds()
        Returns:
        Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.
      • successfulJobsHistoryLimit

        public java.util.Optional<java.lang.Integer> successfulJobsHistoryLimit()
        Returns:
        The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.
      • suspend

        public java.util.Optional<java.lang.Boolean> suspend()
        Returns:
        This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.