Skip to content

Commit

Permalink
restart module messages + rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
abe-winter committed Apr 10, 2024
1 parent c2b4898 commit 553da74
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions proto/viam/robot/v1/robot.proto
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ service RobotService {
get: "/viam/api/v1/cloud_metadata"
};
}

rpc RestartModule(RestartModuleRequest) returns (RestartModuleResponse) {
option (google.api.http) = {
post: "/viam/api/v1/restart_module"
};
}
}

message FrameSystemConfig {
Expand Down Expand Up @@ -330,3 +336,20 @@ message GetCloudMetadataResponse {
string machine_id = 4;
string machine_part_id = 5;
}

message RestartModuleRequest {
oneof id_or_name {
// ID is for registry modules, name for local modules
string module_id = 1;
string module_name = 2;
}
// optional process shutdown params
int32 signal = 3;
int32 timeout_seconds = 4;
}

message RestartModuleRequest {
bool module_found = 1;
bool timed_out = 2;
int32 exit_code = 3;
}

0 comments on commit 553da74

Please sign in to comment.