Skip to content

Commit 1d80a9b

Browse files
committed
proto
1 parent 594c4aa commit 1d80a9b

File tree

8 files changed

+666
-577
lines changed

8 files changed

+666
-577
lines changed

internal/scheduler/schedulerobjects/schedulerobjects.pb.go

Lines changed: 140 additions & 110 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/scheduler/schedulerobjects/schedulerobjects.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ message ResourceList {
7676

7777
// Minimal job representation used by the scheduler.
7878
message JobSchedulingInfo {
79+
reserved 10;
7980
option (gogoproto.stable_marshaler) = true;
8081
uint32 lifetime = 1;
8182
bool at_most_once = 2;
@@ -88,7 +89,7 @@ message JobSchedulingInfo {
8889
// Kubernetes objects that make up this job and their respective scheduling requirements.
8990
repeated ObjectRequirements object_requirements = 5;
9091
uint32 version = 9;
91-
// ordinal 10 was previously used for queue_ttl_seconds
92+
double price = 11;
9293
}
9394

9495
// Message capturing the scheduling requirements of a particular Kubernetes object.

pkg/api/api.swagger.go

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,10 @@ func SwaggerJsonTemplate() string {
892892
" \"$ref\": \"#/definitions/v1PodSpec\"\n" +
893893
" }\n" +
894894
" },\n" +
895+
" \"price\": {\n" +
896+
" \"type\": \"number\",\n" +
897+
" \"format\": \"double\"\n" +
898+
" },\n" +
895899
" \"priority\": {\n" +
896900
" \"type\": \"number\",\n" +
897901
" \"format\": \"double\"\n" +
@@ -905,11 +909,6 @@ func SwaggerJsonTemplate() string {
905909
" \"type\": \"string\"\n" +
906910
" }\n" +
907911
" },\n" +
908-
" \"queueTtlSeconds\": {\n" +
909-
" \"description\": \"Queuing TTL for this job in seconds. If this job queues for more than this duration it will be cancelled. Zero indicates an infinite lifetime.\",\n" +
910-
" \"type\": \"string\",\n" +
911-
" \"format\": \"int64\"\n" +
912-
" },\n" +
913912
" \"requiredNodeLabels\": {\n" +
914913
" \"type\": \"object\",\n" +
915914
" \"additionalProperties\": {\n" +
@@ -1758,6 +1757,10 @@ func SwaggerJsonTemplate() string {
17581757
" \"$ref\": \"#/definitions/v1PodSpec\"\n" +
17591758
" }\n" +
17601759
" },\n" +
1760+
" \"price\": {\n" +
1761+
" \"type\": \"number\",\n" +
1762+
" \"format\": \"double\"\n" +
1763+
" },\n" +
17611764
" \"priority\": {\n" +
17621765
" \"type\": \"number\",\n" +
17631766
" \"format\": \"double\"\n" +

pkg/api/api.swagger.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,10 @@
881881
"$ref": "#/definitions/v1PodSpec"
882882
}
883883
},
884+
"price": {
885+
"type": "number",
886+
"format": "double"
887+
},
884888
"priority": {
885889
"type": "number",
886890
"format": "double"
@@ -894,11 +898,6 @@
894898
"type": "string"
895899
}
896900
},
897-
"queueTtlSeconds": {
898-
"description": "Queuing TTL for this job in seconds. If this job queues for more than this duration it will be cancelled. Zero indicates an infinite lifetime.",
899-
"type": "string",
900-
"format": "int64"
901-
},
902901
"requiredNodeLabels": {
903902
"type": "object",
904903
"additionalProperties": {
@@ -1747,6 +1746,10 @@
17471746
"$ref": "#/definitions/v1PodSpec"
17481747
}
17491748
},
1749+
"price": {
1750+
"type": "number",
1751+
"format": "double"
1752+
},
17501753
"priority": {
17511754
"type": "number",
17521755
"format": "double"

pkg/api/submit.pb.go

Lines changed: 246 additions & 226 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/api/submit.proto

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import "google/api/annotations.proto";
1212
import "pkg/api/health.proto";
1313

1414
message JobSubmitRequestItem {
15+
reserved 12;
1516
double priority = 1;
1617
string namespace = 3;
1718
string client_id = 8;
@@ -25,7 +26,7 @@ message JobSubmitRequestItem {
2526
// Indicates which scheduler should manage this job.
2627
// If empty, the default scheduler is used.
2728
string scheduler = 11;
28-
// Ordinal 12 was previously used for queue_ttl_seconds
29+
double price = 13;
2930
}
3031

3132
message IngressConfig {
@@ -105,6 +106,7 @@ enum JobState {
105106
}
106107

107108
message Job {
109+
reserved 22;
108110
string id = 1;
109111
string client_id = 13;
110112
string job_set_id = 2;
@@ -144,8 +146,7 @@ message Job {
144146
// Indicates which scheduler should manage this job.
145147
// If empty, the default scheduler is used.
146148
string scheduler = 20;
147-
// Queuing TTL for this job in seconds. If this job queues for more than this duration it will be cancelled. Zero indicates an infinite lifetime.
148-
int64 queue_ttl_seconds = 22;
149+
double price = 30;
149150
}
150151

151152
// swagger:model

pkg/armadaevents/events.pb.go

Lines changed: 257 additions & 227 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/armadaevents/events.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ message SubmitJob {
156156
bool isDuplicate = 12;
157157
// The job id
158158
string job_id = 14;
159+
double price = 15;
159160
}
160161

161162
// Kubernetes objects that can serve as main objects for an Armada job.

0 commit comments

Comments
 (0)