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 ( |
template
object (
ExecutionTemplateSpec
)
Optional. Describes the execution that will be created when running a job.
Union field create_execution
.
create_execution
can be only one of the following:
startExecutionToken
string
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
string
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 ( |
spec
object (
ExecutionSpec
)
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 ( |
observedGeneration
integer
The 'generation' of the job that was last processed by the controller.
conditions[]
object (
Condition
)
Conditions communicate information about ongoing/complete reconciliation processes that bring the "spec" inline with the observed state of the world.
Job-specific conditions include:
-
Ready
:True
when the job is ready to be executed.
executionCount
integer
Number of executions created for this job.
latestCreatedExecution
object (
ExecutionReference
)
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. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
completionTimestamp
|
Optional. Completion timestamp of the execution. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
deletionTimestamp
|
Optional. The read-only soft deletion timestamp of the execution. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. 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. |