Packages

case class CronJobSpec(concurrencyPolicy: Optional[String] = Optional.Absent, failedJobsHistoryLimit: Optional[Int] = Optional.Absent, jobTemplate: JobTemplateSpec, schedule: String, startingDeadlineSeconds: Optional[Long] = Optional.Absent, successfulJobsHistoryLimit: Optional[Int] = Optional.Absent, suspend: Optional[Boolean] = Optional.Absent) extends Product with Serializable

CronJobSpec describes how the job execution will look like and when it will actually run.

concurrencyPolicy

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

The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to \1.

schedule

The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.

startingDeadlineSeconds

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

The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.

suspend

This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CronJobSpec
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CronJobSpec(concurrencyPolicy: Optional[String] = Optional.Absent, failedJobsHistoryLimit: Optional[Int] = Optional.Absent, jobTemplate: JobTemplateSpec, schedule: String, startingDeadlineSeconds: Optional[Long] = Optional.Absent, successfulJobsHistoryLimit: Optional[Int] = Optional.Absent, suspend: Optional[Boolean] = Optional.Absent)

    concurrencyPolicy

    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

    The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to \1.

    schedule

    The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.

    startingDeadlineSeconds

    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

    The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.

    suspend

    This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.

Value Members

  1. val concurrencyPolicy: Optional[String]
  2. val failedJobsHistoryLimit: Optional[Int]
  3. def getConcurrencyPolicy: IO[K8sFailure, String]

    Specifies how to treat concurrent executions of a Job.

    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

    If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

  4. def getFailedJobsHistoryLimit: IO[K8sFailure, Int]

    The number of failed finished jobs to retain.

    The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to \1.

    If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

  5. def getJobTemplate: IO[K8sFailure, JobTemplateSpec]

    Gets jobTemplate.

    Gets jobTemplate.

    This effect always succeeds, it is safe to use the field jobTemplate directly.

  6. def getSchedule: IO[K8sFailure, String]

    The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.

    The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.

    This effect always succeeds, it is safe to use the field schedule directly.

  7. def getStartingDeadlineSeconds: IO[K8sFailure, Long]

    Optional deadline in seconds for starting the job if it misses scheduled time for any reason.

    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.

    If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

  8. def getSuccessfulJobsHistoryLimit: IO[K8sFailure, Int]

    The number of successful finished jobs to retain.

    The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.

    If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

  9. def getSuspend: IO[K8sFailure, Boolean]

    This flag tells the controller to suspend subsequent executions, it does not apply to already started executions.

    This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.

    If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

  10. val jobTemplate: JobTemplateSpec
  11. val schedule: String
  12. val startingDeadlineSeconds: Optional[Long]
  13. val successfulJobsHistoryLimit: Optional[Int]
  14. val suspend: Optional[Boolean]