Skip to content
Merged
Changes from 4 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
16 changes: 16 additions & 0 deletions odpf/optimus/runtime_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,20 @@ message JobSpecHook {
repeated JobConfigItem config = 2;
}

message JobSpecResourceConfig {
string cpu = 1;
string memory = 2;
}

message JobSpecResource {
JobSpecResourceConfig request = 1;
JobSpecResourceConfig limit = 2;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we prefix them with Metadata? Resource is a term already used for something else in Optimus. It doesn't directly convey the message these are execution time resource limits/requests

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh right. Then, are JobSpecMetadataResource and JobSpecMetadataResourceConfig good enough?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah sounds good.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's updated as suggested


message JobMetadata {
JobSpecResource resource = 1;
}

message JobSpecification {
int32 version = 1;
string name = 2;
Expand Down Expand Up @@ -301,6 +315,8 @@ message JobSpecification {
repeated Notifiers notify = 2;
}
Behavior behavior = 19;

JobMetadata metadata = 20;
}

message JobConfigItem {
Expand Down