Skip to content

Commit 6f20618

Browse files
committed
support asynrun rpc method
1 parent b258d80 commit 6f20618

File tree

7 files changed

+357
-100
lines changed

7 files changed

+357
-100
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,21 @@ 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;
4961
const int MPC_FAILED = -1;
62+
5063
const std::string PATH_SEPARATOR = "/";
5164
const std::string MPC_RELATIVE_PATH = "/Programs/Source/";
5265
const std::string MPC_ALGORITHM_FILE_SUFFIX = ".mpc";

0 commit comments

Comments
 (0)