GoogleApi.CloudRun.V1alpha1.Model.JobSpec (google_api_cloud_run v0.42.0) View Source

JobSpec describes how the job execution will look like.

Attributes

  • activeDeadlineSeconds (type: String.t, default: nil) - Optional. Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it. If set to zero, the system will never attempt to terminate the job based on time. Otherwise, the value must be positive integer. +optional
  • backoffLimit (type: integer(), default: nil) - Optional. Specifies the number of retries per instance, before marking this job failed. If set to zero, instances will never retry on failure. +optional
  • completions (type: integer(), default: nil) - Optional. Specifies the desired number of successfully finished instances the job should be run with. Setting to 1 means that parallelism is limited to 1 and the success of that instance signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ +optional
  • parallelism (type: integer(), default: nil) - Optional. Specifies the maximum desired number of instances the job should run at any given time. Must be <= completions. The actual number of instances running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ +optional
  • template (type: GoogleApi.CloudRun.V1alpha1.Model.InstanceTemplateSpec.t, default: nil) - Optional. Describes the instance that will be created when executing a job.
  • ttlSecondsAfterFinished (type: integer(), default: nil) - Optional. ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is set to zero, the Job won't be automatically deleted. +optional

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.CloudRun.V1alpha1.Model.JobSpec{
  activeDeadlineSeconds: String.t(),
  backoffLimit: integer(),
  completions: integer(),
  parallelism: integer(),
  template: GoogleApi.CloudRun.V1alpha1.Model.InstanceTemplateSpec.t(),
  ttlSecondsAfterFinished: integer()
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.