Skip to content

Commit 06e5d2e

Browse files
committed
support asynrun rpc method
1 parent b258d80 commit 06e5d2e

File tree

7 files changed

+394
-98
lines changed

7 files changed

+394
-98
lines changed

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

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

48+
// job status
49+
struct JobStatus
50+
{
51+
std::string jobId;
52+
int code;
53+
std::string message;
54+
int64_t startTimeMs;
55+
int64_t timeCostMs;
56+
};
57+
4858
const int MPC_SUCCESS = 0;
59+
const int MPC_RUNNING = 1;
60+
const int MPC_DUPLICATED = 2;
61+
const int MPC_KILLED = 3;
4962
const int MPC_FAILED = -1;
63+
5064
const std::string PATH_SEPARATOR = "/";
5165
const std::string MPC_RELATIVE_PATH = "/Programs/Source/";
5266
const std::string MPC_ALGORITHM_FILE_SUFFIX = ".mpc";

0 commit comments

Comments
 (0)