CronJobSpec

case class CronJobSpec(concurrencyPolicy: Optional[String], failedJobsHistoryLimit: Optional[Int], jobTemplate: JobTemplateSpec, schedule: String, startingDeadlineSeconds: Optional[Long], successfulJobsHistoryLimit: Optional[Int], suspend: Optional[Boolean])

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

Value Params
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. This is a pointer to distinguish between explicit zero and not specified.

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. This is a pointer to distinguish between explicit zero and not specified.

suspend

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

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

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

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.

The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.

The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.

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

Gets jobTemplate.

Gets jobTemplate.

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

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.

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.

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.

The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.

The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.

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

def getSuspend: IO[K8sFailure, Boolean]

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

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.

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product