mirror of
https://github.com/ultravioletrs/cocos.git
synced 2026-08-07 07:14:50 +00:00
22c14cb438
CI / lint (push) Has been cancelled
CI / checkproto (push) Has been cancelled
CI / test (agent) (push) Has been cancelled
CI / upload-coverage (push) Has been cancelled
CI / test (cli) (push) Has been cancelled
CI / test (cmd) (push) Has been cancelled
CI / test (internal) (push) Has been cancelled
CI / test (manager, true) (push) Has been cancelled
CI / test (pkg) (push) Has been cancelled
* Update protobuf generated files and improve algorithm handling in runner service - Bump protoc version from v7.35.0 to v7.35.1 in generated protobuf files. - Refactor RunRequest message in runner.proto to use string paths for algorithm and requirements instead of byte arrays. - Update runner service to handle algorithm and requirements paths, removing the need for temporary file creation. - Enhance error handling for missing algorithm paths in the runner service. - Modify tests to align with the new RunRequest structure and ensure proper file handling. Signed-off-by: Sammy Oina <sammyoina@gmail.com> * chore: update protoc version to 35.1 in CI workflow Signed-off-by: Sammy Oina <sammyoina@gmail.com> * feat: update systemd service configurations and dependencies for improved service management Signed-off-by: Sammy Oina <sammyoina@gmail.com> * fix: adjust AlgoWorkingDir handling in tests for Docker algorithm Signed-off-by: Sammy Oina <sammyoina@gmail.com> --------- Signed-off-by: Sammy Oina <sammyoina@gmail.com>
39 lines
832 B
Protocol Buffer
39 lines
832 B
Protocol Buffer
// Copyright (c) Ultraviolet
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
syntax = "proto3";
|
|
|
|
package runner;
|
|
|
|
option go_package = "./runner";
|
|
|
|
import "google/protobuf/empty.proto";
|
|
|
|
service ComputationRunner {
|
|
rpc Run(RunRequest) returns (RunResponse);
|
|
rpc Stop(StopRequest) returns (google.protobuf.Empty);
|
|
}
|
|
|
|
message RunRequest {
|
|
string computation_id = 1;
|
|
string algo_type = 2; // "binary", "python", "wasm", "docker"
|
|
string algorithm_path = 3; // Path to the staged algorithm artifact
|
|
string requirements_path = 4; // Optional path to staged Python requirements.txt
|
|
repeated string args = 5;
|
|
repeated Dataset datasets = 6;
|
|
}
|
|
|
|
message Dataset {
|
|
string filename = 1;
|
|
bytes hash = 2;
|
|
}
|
|
|
|
message RunResponse {
|
|
string computation_id = 1;
|
|
string error = 2;
|
|
}
|
|
|
|
message StopRequest {
|
|
string computation_id = 1;
|
|
}
|