Get desktop application:
View/edit binary Protocol Buffers messages
* Task service defines the task related methods such as get, list, start, stop and restart tasks.
Get the info of a task in job.
* Request message for TaskService.GetTask method.
The job ID of the task to get.
The instance ID of the task to get.
* Response message for TaskService.GetTask method. Return errors: NOT_FOUND: if the job or task not found. OUT_OF_RANGE: if the instance ID is out of range.
The task info of the task. DEPRECATED
Returns all active and completed tasks of the given instance.
List a set of tasks in a job for a given range of instance IDs.
* Request message for TaskService.ListTasks method.
The job ID of the tasks to list.
The instance ID range of the tasks to list.
* Response message for TaskService.GetTask method. Return errors: NOT_FOUND: if the job ID is not found. OUT_OF_RANGE: if the instance IDs are out of range.
The map of instance ID to task info for all matching tasks.
Start a set of tasks for a job. Will be no-op for tasks that are currently running. The tasks are started asynchronously after the API call returns.
* Request message for TaskService.StartTasks method.
The job ID of the tasks to start.
The instance ID ranges of the tasks to start.
* Response message for TaskService.StartTasks method. Return errors: NOT_FOUND: if the job ID is not found. OUT_OF_RANGE: if the instance IDs are out of range. INTERNAL: if the tasks fail to start for internal errors.
The set of instance IDs that have been started.
The set of instance IDs that are failed to start.
Stop a set of tasks for a job. Will be no-op for tasks that are currently stopped. The tasks are stopped asynchronously after the API call returns.
* Request message for TaskService.StopTasks method.
The job ID of the tasks to stop.
The instance ID ranges of the tasks to stop. If you dont specify any range it will signal all instance IDs to stop.
* Response message for TaskService.StopTasks method. Return errors: NOT_FOUND: if the job ID is not found in Peloton. OUT_OF_RANGE: if the instance IDs are out of range. INTERNAL: if the tasks fail to stop for internal errors.
The set of instance IDs that have been signalled to be stopped. These instanced IDs will be asynchronously stopped.
The set of instance IDs that have failed to be signalled successfuly.
Restart a set of tasks for a job. Will start tasks that are currently stopped. This is an asynchronous call.
* Request message for TaskService.RestartTasks method.
The job ID of the tasks to restart.
The instance ID ranges of the tasks to restart.
* Response message for TaskService.RestartTasks method. Return errors: NOT_FOUND: if the job ID is not found. OUT_OF_RANGE: if the instance IDs are out of range. INTERNAL: if the tasks fail to restart for internal errors.
The set of instance IDs that have been stopped.
The set of instance IDs that are failed to stop.
Query task info in a job, using a set of filters.
* Request message for TaskService.QueryTasks method.
The job ID of the tasks to query.
The spec of query criteria for the tasks.
The spec of how to do pagination for the query results.
* Response message for TaskService.QueryTasks method. Return errors: NOT_FOUND: if the job ID is not found. INTERNAL: if fail to query the tasks for internal errors.
List of tasks that match the task query criteria.
Pagination result of the task query.
BrowseSandbox returns list of file paths inside sandbox. The client can use the Mesos Agent HTTP endpoints to read and download the files. http://mesos.apache.org/documentation/latest/endpoints/
* Request message for TaskService.BrowseSandbox method.
The job ID of the task to browse the sandbox.
The instance ID of the task to browse the sandbox.
Get the sandbox path of a particular task of an instance. This should be set to the mesos task id in the runtime of the task for which the sandbox is being requested. If not provided, the path of the latest task is returned.
* Response message for TaskService.BrowseSandbox method. Return errors: NOT_FOUND: if the job ID is not found. OUT_OF_RANGE: if the instance IDs are out of range. INTERNAL: if fail to browse the sandbox for internal errors. FAILED_PRECONDITION: if the task has not been run yet.
The hostname of the sandbox.
The port of the sandbox.
The list of sandbox file paths. TODO: distinguish files and directories in the sandbox
Mesos Master hostname and port.
Debug only method. Allows user to load task runtime state from DB and re-execute the action associated with current state.
* Request message for TaskService.RefreshTasks method.
The job ID of the tasks to list.
The instance ID range of the tasks to refresh.
* Response message for TaskService.RefreshTasks method. Return errors: NOT_FOUND: if the job or tasks are not found.
(message has no fields)
Debug only method. Get the cache of a task stored in Peloton.
* Request message for TaskService.GetTaskCache method.
The job ID to look up the task.
The instance ID of the task to get.
* Response message for TaskService.GetTaskCache method. Return errors: NOT_FOUND: if the job or task not found in cache. INTERNAL_ERROR: if fail to read cache due to internal error.
The task runtime of the task.
GetPodEvents returns pod events (state transition for a pod), in reverse chronological order. pod is singular instance of a Peloton job.
* Request message for TaskService.GetPodEvents method.
The job ID of the task
The instance ID of the task
Limit of events
* Response message for TaskService.GetPodEvents method. Return errors: INTERNAL: if failed to get pod events for internal errors.
Used in:
* Pod event of a Peloton pod instance.
Used in:
The task ID of the task event.
Actual state of an instance
Goal State of an instance
The time when the event was created. The time is represented in RFC3339 form with UTC timezone.
The config version currently used by the runtime.
The desired config version that should be used by the runtime.
The agentID for the task
The host on which the task is running
Short human friendly message explaining state.
The short reason for the task event
The previous task ID of the pod event.
The health check state of the task