Show / Hide Table of Contents

Class JobSpec

JobSpec describes how the job execution will look like.

Inheritance
System.Object
JobSpec
Implements
IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.CloudRun.v1alpha1.Data
Assembly: Google.Apis.CloudRun.v1alpha1.dll
Syntax
public class JobSpec : IDirectResponseSchema

Properties

ActiveDeadlineSeconds

Optional. Not supported. 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

Declaration
[JsonProperty("activeDeadlineSeconds")]
public virtual long? ActiveDeadlineSeconds { get; set; }
Property Value
Type Description
System.Nullable<System.Int64>

BackoffLimit

Optional. Specifies the number of retries per instance, before marking this job failed. If set to zero, instances will never retry on failure. +optional

Declaration
[JsonProperty("backoffLimit")]
public virtual int? BackoffLimit { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

Completions

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

Declaration
[JsonProperty("completions")]
public virtual int? Completions { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.String

Parallelism

Optional. Specifies the maximum desired number of instances the job should run at any given time. Must be &lt;= completions. The actual number of instances running in steady state will be less than this number when ((.spec.completions - .status.successful) &lt; .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

Declaration
[JsonProperty("parallelism")]
public virtual int? Parallelism { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

Template

Optional. Describes the instance that will be created when executing a job.

Declaration
[JsonProperty("template")]
public virtual InstanceTemplateSpec Template { get; set; }
Property Value
Type Description
InstanceTemplateSpec

TtlSecondsAfterFinished

Optional. Not supported. 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

Declaration
[JsonProperty("ttlSecondsAfterFinished")]
public virtual int? TtlSecondsAfterFinished { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

Implements

IDirectResponseSchema
In This Article
Back to top