diff --git a/proto/psh.proto b/proto/psh.proto index 2439fc7..0529ea1 100644 --- a/proto/psh.proto +++ b/proto/psh.proto @@ -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 { @@ -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 {