Get desktop application:
View/edit binary Protocol Buffers messages
Job service defines the job related methods such as create, get, query and kill jobs.
Methods which mutate the state of the job.
Create a new job with the given configuration.
Request message for JobService.CreateJob method.
The unique job UUID specified by the client. This can be used by the client to re-create a deleted job. If unset, the server will create a new UUID for the job for each invocation.
The configuration of the job to be created.
Experimental: This is a batch feature. The implementation is subject to change (or removal) from stateless. The list of secrets for this job
The creation SLA specification.
Opaque data supplied by the client
Response message for JobService.CreateJob method. Return errors: ALREADY_EXISTS: if the job ID already exists INVALID_ARGUMENT: if the job ID or job config is invalid. NOT_FOUND: if the resource pool is not found.
The job ID of the newly created job. Will be the same as the one in CreateJobRequest if provided. Otherwise, a new job ID will be generated by the server.
The current version of the job.
Replace the configuration of an existing job with the new configuration. The caller is expected to provide the entire job configuration including the fields which are unchanged.
Request message for JobService.ReplaceJob method.
The job ID to be updated.
The current version of the job. It is used to implement optimistic concurrency control.
The new job configuration to be applied.
The list of secrets for this job
The update SLA specification.
Opaque data supplied by the client
Response message for JobService.ReplaceJob method. Return errors: INVALID_ARGUMENT: if the job ID or job config is invalid. NOT_FOUND: if the job ID is not found. ABORTED: if the job version is invalid.
The new version of the job.
Patch the configuration of an existing job. The caller is not expected to provide all the configuration fields and can provide only subset (e.g. provide only the fields which have changed). This is not supported yet.
Request message for JobService.PatchJob method.
The job ID to be updated.
The current version of the job. It is used to implement optimistic concurrency control.
The new job configuration to be patched.
The list of secrets for this job
The update SLA specification.
Opaque data supplied by the client
Response message for JobService.PatchJob method. Return errors: INVALID_ARGUMENT: if the job ID or job config is invalid. NOT_FOUND: if the job ID is not found. ABORTED: if the job version is invalid.
The new version of the job.
Restart the pods specified in the request.
Request message for JobService.RestartJob method.
The job to restart.
The current version of the job. It is used to implement optimistic concurrency control.
The restart specification.
Opaque data supplied by the client
Response message for JobService.RestartJob method. Return errors: NOT_FOUND: if the job ID is not found. ABORTED: if the job version is invalid.
The new version of the job.
Pause the current running workflow. If there is no current running workflow, or the current workflow is already paused, then the method is a no-op.
Request message for JobService.PauseJobWorkflow method.
The job identifier.
The current version of the job.
Opaque data supplied by the client
Response message for JobService.PauseJobWorkflow method. Response message for JobService.RestartJob method. Return errors: NOT_FOUND: if the job ID is not found. ABORTED: if the job version is invalid.
The new version of the job.
Resume the current running workflow. If there is no current running workflow, or the current workflow is not paused, then the method is a no-op.
Request message for JobService.ResumeJobWorkflow method.
The job identifier.
The current version of the job.
Opaque data supplied by the client
Response message for JobService.ResumeJobWorkflow method. Response message for JobService.RestartJob method. Return errors: NOT_FOUND: if the job ID is not found. ABORTED: if the job version is invalid.
The new version of the job.
Abort the current running workflow. If there is no current running workflow, then the method is a no-op.
Request message for JobService.AbortJobWorkflow method.
The job identifier.
The current version of the job.
Opaque data supplied by the client
Response message for JobService.AbortJobWorkflow method. Response message for JobService.RestartJob method. Return errors: NOT_FOUND: if the job ID is not found. ABORTED: if the job version is invalid.
The new version of the job.
Start the pods specified in the request.
Request message for JobService.StartJob method.
The job to start
The current version of the job. It is used to implement optimistic concurrency control.
Response message for JobService.StartJob method. Response message for JobService.RestartJob method. Return errors: NOT_FOUND: if the job ID is not found. ABORTED: if the job version is invalid.
The new version of the job.
Stop the pods specified in the request.
Request message for JobService.StopJob method.
The job to stop
The current version of the job. It is used to implement optimistic concurrency control.
Response message for JobService.StopJob method. Response message for JobService.RestartJob method. Return errors: NOT_FOUND: if the job ID is not found. ABORTED: if the job version is invalid.
The new version of the job.
Delete a job and all related state.
Request message for JobService.DeleteJob method.
The job to be deleted.
The current version of the job. It is used to implement optimistic concurrency control.
If set to true, it will force a delete of the job even if it is running. The job will be first stopped and deleted. This step cannot be undone, and the job cannot be re-created (with same uuid) till the delete is complete. So, it is recommended to not set force to true.
Response message for JobService.DeleteJob method. Response message for JobService.RestartJob method. Return errors: NOT_FOUND: if the job ID is not found. ABORTED: if the job version is invalid or job is still running. FailedPrecondition: if the job has not been stopped before delete.
(message has no fields)
Get the configuration and runtime status of a job.
Request message for JobService.GetJob method.
The job ID to look up the job.
The version of the job object to fetch. If not provided, then the latest job configuration specification and runtime status are returned. If provided, only the job configuration specification (and no runtime) at a given version is returned.
If set to true, only return the job summary.
Response message for JobService.GetJob method. Return errors: NOT_FOUND: if the job ID is not found.
The configuration specification and runtime status of the job.
The job summary.
The list of secrets for this job, secret.Value will be empty. SecretID and path will be populated, so that caller can identify which secret is associated with this job.
Information about the current/last completed workflow including its state and specification.
Get the job UUID from job name.
Request message for JobService.GetJobIDFromJobName method.
Job name to lookup for job UUID.
Response message for JobService.GetJobIDFromJobName method. Return errors: NOT_FOUND: if the job name is not found.
The job UUIDs for the job name. Job UUIDs are sorted by descending create timestamp.
Get the events of the current / last completed workflow of a job
Request message for JobService.GetWorkflowEvents
The job ID to look up the job.
The instance to get workflow events.
Limits the number of workflow events. If limit is 0, then all events are fetched.
Response message for JobService.GetWorkflowEvents Return errors: NOT_FOUND: if the job ID is not found.
Workflow events for the given workflow
List all pods in a job for a given range of pod IDs.
Request message for JobService.ListPods method.
The job identifier of the pods to list.
The instance ID range of the pods to list. If unset, all pods in the job will be returned.
Response message for JobService.ListPods method. Return errors: NOT_FOUND: if the job ID is not found.
Pod summary for all matching pods.
Query pod info in a job using a set of filters.
Request message for JobService.QueryPods method.
The job identifier of the pods to query.
The spec of query criteria for the pods.
The spec of how to do pagination for the query results.
If set to true, only return the pod status and not the configuration.
Response message for JobService.QueryPods method. Return errors: NOT_FOUND: if the job ID is not found.
List of pods that match the pod query criteria.
Pagination result of the pod query.
Query the jobs using a set of filters. TODO find the appropriate service to put this method in.
Request message for JobService.QueryJobs method.
The spec of query criteria for the jobs.
Response message for JobService.QueryJobs method. Return errors: INVALID_ARGUMENT: if the resource pool path or job states are invalid.
List of jobs that match the job query criteria.
Pagination result of the job query.
Return the spec of query criteria from the request.
Get summary for all jobs. Results are streamed back to the caller in batches and the stream is closed once all results have been sent.
Request message for JobService.ListJobs method.
(message has no fields)
Response message for JobService.ListJobs method.
List of all jobs.
List all workflows (including current and previously completed) for a given job. Optional parameters to limit the number of updates to list and whether to include instance workflow events can be set. Default is to list of all the updates and do not to fetch instance workflow events.
Request message for JobService.ListJobWorkflows method.
The job identifier.
Limits the number of updates to list for a job.
Flag to indicate whether to fetch instance workflow events for that job update.
Limits the number of events per instance. If limit is 0, then all events are fetched.
Response message for JobService.ListJobWorkflows method. Return errors: NOT_FOUND: if the job ID is not found.
Get the list of instances which will be added/removed/updated if the given job specification is applied via the ReplaceJob API.
Request message for JobService.GetReplaceJobDiffRequest method.
The job ID to be updated.
The current version of the job.
The new job configuration to be applied.
Response message for JobService.GetReplaceJobDiff method. Return errors: INVALID_ARGUMENT: if the job ID or job config is invalid. NOT_FOUND: if the job ID is not found. ABORTED: if the job version is invalid.
Instances which are being added
Instances which are being removed
Instances which are being updated
Instances which are unchanged
Allows user to load job runtime status from the database and re-execute the action associated with current state.
Request message for JobService.RefreshJob method.
The job ID to look up the job.
Response message for JobService.RefreshJob method. Return errors: NOT_FOUND: if the job ID is not found.
(message has no fields)
Get the job state in the cache.
Request message for JobService.GetJobCache method.
The job ID to look up the job.
Response message for JobService.GetJobCache method. Return errors: NOT_FOUND: if the job ID is not found.
The job configuration in cache of the matching job.
The job runtime in cache of the matching job.