Get desktop application:
View/edit binary Protocol Buffers messages
* Job service defines the job related methods such as create, get, query and kill jobs.
Create a job entity for a given config.
* 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 failed job without the side-effect of creating duplicated jobs. If unset, the server will create a new UUID for the job for each invocation.
The resource pool under which the job should be created. The scheduling of all tasks in the job will be subject to the resource availablity of the resource pool.
The detailed configuration of the job to be created.
The list of secrets for this job
* Response message for JobService.CreateJob method. Return errors: ALREADY_EXISTS: if the job ID already exists.o 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.
Get the config of a job entity.
* Request message for JobService.GetJob method.
The job ID to look up the job.
* Response message for JobService.GetJob method. Return errors: NOT_FOUND: if the job is not found in Peloton.
The job configuration of the matching job.
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.
Query the jobs that match a list of labels.
* Request message for JobService.QueryJobs method.
The spec of query criteria for the jobs.
The spec of how to do pagination for the query results.
* 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.
Delete a job and stop all related tasks.
* Request message for JobService.DeleteJob method.
The job ID to be deleted.
* Response message for JobService.DeleteJob method. Return errors: NOT_FOUND: if the job is not found in Peloton.
(message has no fields)
Update a job entity with a new config. This is a temporary API for updating batch jobs. It only supports adding new instances to an existing job. It will be deprecated when the UpgradeService API is implemented.
* Request message for JobService.UpdateJob method.
The job ID to be updated.
The new job config to be applied to the job.
The list of secrets for this job
* Response message for JobService.UpdateJob method. Return errors: INVALID_ARGUMENT: if the job ID or job config is invalid. NOT_FOUND: if the job ID is not found.
(message has no fields)
Restart the tasks specified in restart request Experimental only
* Request message for JobService.RestartJob method. Experimental only
The job to restart
The instances to restart, default to all
The resourceVersion received from last job operation call for concurrency control
The config for restart a job
* Response message for JobService.RestartJob method. Return errors: INVALID_ARGUMENT: if the job ID or job resourceVersion is invalid. NOT_FOUND: if the job ID is not found. Experimental only
The new resourceVersion after the operation
updateID associated with the restart
StartJob the tasks specified in start request Experimental only
* Request message for JobService.StartJob method. Experimental only
The job to start
The instances to start, default to all
The resourceVersion received from last job operation call for concurrency control
The config for starting a job
* Response message for JobService.StartJob method. Return errors: INVALID_ARGUMENT: if the job ID or job resourceVersion is invalid. NOT_FOUND: if the job ID is not found. Experimental only
The new resourceVersion after the operation
updateID associated with the start
Stop the tasks specified in stop request Experimental only
* Request message for JobService.StopJobRequest method. Experimental only
The job to stop
The instances to stop, default to all
The resourceVersion received from last job operation call for concurrency control
The config for stopping a job
* Response message for JobService.StopJob method. Return errors: INVALID_ARGUMENT: if the job ID or job resourceVersion is invalid. NOT_FOUND: if the job ID is not found. Experimental only
The new resourceVersion after the operation
updateID associated with the stop
Debug only method. Allows user to load job runtime state from DB and re-execute the action associated with current state.
* Request message for JobService.RefreshJob method. Experimental only
The job ID to look up the job.
* Response message for JobService.RefreshJob method. Return errors: NOT_FOUND: if the job is not found in Peloton.
(message has no fields)
Debug only method. Get the cache of a job stored in Peloton.
* 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 is not found in Peloton cache. INTERNAL_ERROR: if fail to read cache due to internal error.
The job configuration in cache of the matching job.
The job runtime in cache of the matching job.
* RestartConfig is the optional config for RestartJobRequest Experimental only
Used in:
batch size of rolling restart, if unset or 0 all tasks specified will be restarted at the same time.
* StartConfig is the optional config for StartJobRequest
Used in:
batch size of rolling start, if unset or 0 all tasks specified will be started at the same time.
* StopConfig is the optional config for StopJobRequest
Used in:
batch size of rolling stop, if unset or 0 all tasks specified will be stop at the same time.