Resource: Job
Job represents the configuration of a single job, which references a container image which is run to completion.
JSON representation |
---|
{ "apiVersion": string, "kind": string, "metadata": { object ( |
Fields | |
---|---|
apiVersion |
Optional. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. |
kind |
Optional. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. |
metadata |
Optional. Standard object's metadata. |
spec |
Optional. Specification of the desired behavior of a job. |
status |
Output only. Current status of a job. |
JobSpec
JobSpec describes how the job will look.
JSON representation |
---|
{ "template": { object ( |
Fields | |
---|---|
template |
Optional. Describes the execution that will be created when running a job. |
Union field
|
|
startExecutionToken |
A unique string used as a suffix for creating a new execution. The Job will become ready when the execution is successfully started. The sum of job name and token length must be fewer than 63 characters. |
runExecutionToken |
A unique string used as a suffix for creating a new execution. The Job will become ready when the execution is successfully completed. The sum of job name and token length must be fewer than 63 characters. |
ExecutionTemplateSpec
ExecutionTemplateSpec describes the metadata and spec an Execution should have when created from a job.
JSON representation |
---|
{ "metadata": { object ( |
Fields | |
---|---|
metadata |
Optional. Optional metadata for this Execution, including labels and annotations. The following annotation keys set properties of the created execution:
|
spec |
Required. ExecutionSpec holds the desired configuration for executions of this job. |
JobStatus
JobStatus represents the current state of a Job.
JSON representation |
---|
{ "observedGeneration": integer, "conditions": [ { object ( |
Fields | |
---|---|
observedGeneration |
The 'generation' of the job that was last processed by the controller. |
conditions[] |
Conditions communicate information about ongoing/complete reconciliation processes that bring the "spec" inline with the observed state of the world. Job-specific conditions include:
|
executionCount |
Number of executions created for this job. |
latestCreatedExecution |
A pointer to the most recently created execution for this job. This is set regardless of the eventual state of the execution. |
ExecutionReference
Reference to an Execution. Use /Executions.GetExecution with the given name to get full execution including the latest status.
JSON representation |
---|
{
"name": string,
"creationTimestamp": string,
"completionTimestamp": string,
"deletionTimestamp": string,
"completionStatus": enum ( |
Fields | |
---|---|
name |
Optional. Name of the execution. |
creationTimestamp |
Optional. Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
completionTimestamp |
Optional. Completion timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
deletionTimestamp |
Optional. The read-only soft deletion timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
completionStatus |
Optional. Status for the execution completion. |
CompletionStatus
Possible execution completion status.
Enums | |
---|---|
COMPLETION_STATUS_UNSPECIFIED |
The default value. This value is used if the state is omitted. |
EXECUTION_SUCCEEDED |
Job execution has succeeded. |
EXECUTION_FAILED |
Job execution has failed. |
EXECUTION_RUNNING |
Job execution is running normally. |
EXECUTION_PENDING |
Waiting for backing resources to be provisioned. |
EXECUTION_CANCELLED |
Job execution has been cancelled by the user. |
Methods |
|
---|---|
|
Create a job. |
|
Delete a job. |
|
Get information about a job. |
|
List jobs. |
|
Replace a job. |
|
Trigger creation of a new execution of this job. |