HealthCheck

Description

Checks the gRPC link status.

Prototype

rpc HealthCheck(ClientInfo) returns (Status) {}

Input Parameters

Parameter

Type (Defined by Protobuf)

Description

ClientInfo

message ClientInfo{

string jobId = 1;

string role = 2;

}

ClientInfo.jobId: job ID

ClientInfo.role: client role

Return Value

Return Value

Type (Defined by Protobuf)

Description

Status

message Status{

int32 code = 1;

string info = 2;

}

Status.code: return code

  • 0: The recovery process is normal.
  • Other values: The fault recovery process is abnormal and rescheduling is triggered.

Status.info: return information