Register (Public)

Description

Receives and processes registration requests from clients and prepares for initialization for process-level recovery. After a job successfully calls Init, this API can be called only after the client confirms that the process-level rescheduling and process-level online recovery functions on the MindIO side are enabled. The process-level rescheduling and process-level online recovery functions are available only after Register is successfully called.

Prototype

rpc Register(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 registration is successful.
  • Other values: The registration fails.

Status.info: return information