Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion proto/psh.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,17 @@ service PshService {
message Unit {}
message GetTaskReq { string instance_id = 1; }
message GetTaskResp { optional Task task = 1; }
message TaskDoneReq { string task_id = 1; }
message TaskDoneReq {
string task_id = 1;
TaskStatus status = 2;

enum TaskStatus {
Ok = 0;
NotFound = 1;
AccessDeined = 2;
BadBuildId = 3;
}
}
message NewInstanceIdResp { string instance_id = 1; }

message HeartbeatReq {
Expand Down Expand Up @@ -53,6 +63,12 @@ message Task {
oneof task_type {
WasmTask wasm = 3;
ProfilingTask profiling = 4;
UploadElfTask upload_elf = 5;
}

message UploadElfTask {
string filename = 1;
optional string build_id = 2;
}

message WasmTask {
Expand Down
Loading