Skip to content

Commit

Permalink
add first_run script path + first_run_timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpertsov committed Oct 1, 2024
1 parent 4816114 commit 13a0ea0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions proto/viam/app/v1/app.proto
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,8 @@ message ModuleVersion {
repeated Model models = 3;
// The entrypoint for this version of the module
string entrypoint = 4;
// The path to a setup script that is run before a newly downloaded module starts.
optional string first_run = 5;
}

message ModuleMetadata {
Expand All @@ -948,6 +950,8 @@ message ModuleMetadata {
repeated ModuleVersion versions = 2;
// The executable to run to start the module program
string entrypoint = 3;
// The path to a setup script that is run before a newly downloaded module starts.
optional string first_run = 4;
}

message MLModelMetadata {
Expand Down Expand Up @@ -1118,6 +1122,8 @@ message UpdateModuleRequest {
repeated Model models = 5;
// The executable to run to start the module program
string entrypoint = 6;
// The path to a setup script that is run before a newly downloaded module starts.
optional string first_run = 7;
}

message UpdateModuleResponse {
Expand Down Expand Up @@ -1192,6 +1198,8 @@ message Module {
// The public namespace of the organization that owns the module
// This is empty if no public namespace is set
string public_namespace = 12;
// The path to a setup script that is run before a newly downloaded module starts.
optional string first_run = 13;
}

message VersionHistory {
Expand All @@ -1203,6 +1211,8 @@ message VersionHistory {
repeated Model models = 3;
// The entrypoint for this version of the module
string entrypoint = 4;
// The path to a setup script that is run before a newly downloaded module starts.
optional string first_run = 5;
}

message Uploads {
Expand Down
2 changes: 2 additions & 0 deletions proto/viam/app/v1/robot.proto
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,8 @@ message ModuleConfig {
map<string, string> env = 6;
// info about the validity of the module
AppValidationStatus status = 7;
// timeout for first_run script
google.protobuf.Duration first_run_timeout = 8;
}

// PackageConfig is the configration for deployed Packages.
Expand Down

0 comments on commit 13a0ea0

Please sign in to comment.