Skip to content

Commit 8287407

Browse files
authored
Merge pull request #529 from Prucek/gangway-scheduling
gangway: add scheduling state
2 parents 8026e80 + 0ad26ba commit 8287407

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

pkg/gangway/gangway.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ func TranslateProwJobStatus(prowJobStatus *prowcrd.ProwJobStatus) JobExecutionSt
145145
var jobStatus JobExecutionStatus
146146

147147
switch prowJobStatus.State {
148+
case prowcrd.SchedulingState:
149+
jobStatus = JobExecutionStatus_SCHEDULING
148150
case prowcrd.TriggeredState:
149151
jobStatus = JobExecutionStatus_TRIGGERED
150152
case prowcrd.PendingState:

pkg/gangway/gangway.pb.go

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

pkg/gangway/gangway.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ enum JobExecutionStatus {
100100
FAILURE = 4;
101101
ABORTED = 5;
102102
ERROR = 6;
103+
SCHEDULING = 7;
103104
}
104105

105106
// JobExecutionType is a 1:1 translation of the existing "ProwJobType" type
61 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)