17.30. Jobs Cancel RPC

Requests cancellation of a pending or running job by its identifier.

rpc Cancel (JobsCancelRequest) returns (JobsCancelResponse)

17.30.1. Messages

  • JobsCancelRequest
  • JobsCancelResponse
Copy
Copied!
            

message JobsCancelRequest { RequestHeader header = 1; Identifier job_id = 2; string reason = 3; }


17.31.1. Properties

type: message

Standard RPC request header.

See RequestHeader for details.

17.31.1.2. job_id

type: message

Unique identifier of the job to cancel.

Required. If the identifier value is omitted from the request or does not match any known job identifier, Clara Deploy SDK will be unable to fulfill the request.

See Identifier for details.

17.31.1.3. reason

type: string

Message to describe the reason(s) the job was cancelled.

Copy
Copied!
            

message JobCancelResponse { ResponseHeader header = 1; Identifier job_id = 2; JobState job_state = 3; JobStatus job_status = 4; }


Clara Deploy SDK Jobs service will respond to any cancellation request with a JobsCancelResponse message. Requestors can use the response message to determine the result of their request.

Requestors can determine the current state of job by examining the job_state and job_status values.

For example, if job_state is JOB_STATE_STOPPED and job_status is JOB_STATUS_HEALTHY the requestor can safely assume the job completed correctly.

17.32.1. Properties

17.32.1.1. header

type: message

Standard RPC response header.

See ResponseHeader for details.

17.32.1.2. job_id

type: message

Unique identifier of the job.

See Identifier for details.

17.32.1.3. job_state

type: enum

Enumeration value representing the current state of the job.

See JobState for additional details.

17.32.1.4. job_status

type: message

Enumeration value representing the current status of the job.

See JobStatus for additional details.

© Copyright 2018-2020, NVIDIA Corporation. All rights reserved. Last updated on Feb 1, 2023.