Skip to content

Commit c3be9d5

Browse files
authored
Merge pull request #90 from ywy2090/feature-milestone2-gateway
support async run rpc method
2 parents 1f887ea + c4687a4 commit c3be9d5

File tree

7 files changed

+419
-103
lines changed

7 files changed

+419
-103
lines changed

cpp/wedpr-computing/ppc-mpc/src/Common.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,25 @@ struct JobInfo
4545
std::string gatewayEngineEndpoint;
4646
};
4747

48+
// job status
49+
struct JobStatus
50+
{
51+
std::string jobId;
52+
std::string status;
53+
std::string message;
54+
int64_t startTimeMs;
55+
int64_t timeCostMs;
56+
};
57+
58+
const std::string MPC_JOB_RUNNNING = "RUNNING";
59+
const std::string MPC_JOB_COMPLETED = "COMPLETED";
60+
const std::string MPC_JOB_FAILED = "FAILED";
61+
const std::string MPC_JOB_KILLED = "KILLED";
62+
4863
const int MPC_SUCCESS = 0;
64+
const int MPC_DUPLICATED = 1;
4965
const int MPC_FAILED = -1;
66+
5067
const std::string PATH_SEPARATOR = "/";
5168
const std::string MPC_RELATIVE_PATH = "/Programs/Source/";
5269
const std::string MPC_ALGORITHM_FILE_SUFFIX = ".mpc";

0 commit comments

Comments
 (0)