Skip to content

Commit 8d3f95d

Browse files
committed
support asynrun rpc method
1 parent b258d80 commit 8d3f95d

File tree

7 files changed

+420
-103
lines changed

7 files changed

+420
-103
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,26 @@ 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 status;
54+
std::string message;
55+
int64_t startTimeMs;
56+
int64_t timeCostMs;
57+
};
58+
59+
const std::string MPC_JOB_RUNNNING = "RUNNING";
60+
const std::string MPC_JOB_COMPLETED = "COMPLETED";
61+
const std::string MPC_JOB_FAILED = "FAILED";
62+
const std::string MPC_JOB_KILLED = "KILLED";
63+
4864
const int MPC_SUCCESS = 0;
65+
const int MPC_DUPLICATED = 1;
4966
const int MPC_FAILED = -1;
67+
5068
const std::string PATH_SEPARATOR = "/";
5169
const std::string MPC_RELATIVE_PATH = "/Programs/Source/";
5270
const std::string MPC_ALGORITHM_FILE_SUFFIX = ".mpc";

0 commit comments

Comments
 (0)