Skip to content

Commit

Permalink
Merge pull request #69 from OpsLevel/dougedey/add_pod_timeout
Browse files Browse the repository at this point in the history
Add support for RunnerJobOutcomeEnum.podTimeout
  • Loading branch information
DougEdey authored Jul 20, 2022
2 parents 94ac759 + 1b70407 commit f565aa7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changes/unreleased/Feature-20220719-110636.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Feature
body: Add support for PodTimeout as a runner job outcome
time: 2022-07-19T11:06:36.055171-04:00
3 changes: 2 additions & 1 deletion gen.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build ignore
// +build ignore

package main
Expand All @@ -15,7 +16,7 @@ import (
"strings"
"text/template"

"github.com/opslevel/opslevel-go"
"github.com/opslevel/opslevel-go/v2022"
"github.com/shurcooL/graphql/ident"
)

Expand Down
2 changes: 2 additions & 0 deletions job.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const (
RunnerJobOutcomeEnumSuccess RunnerJobOutcomeEnum = "success" // Job succeded the execution.
RunnerJobOutcomeEnumQueueTimeout RunnerJobOutcomeEnum = "queue_timeout" // Job was not assigned to a runner for too long.
RunnerJobOutcomeEnumExecutionTimeout RunnerJobOutcomeEnum = "execution_timeout" // Job run took too long to complete, and was marked as failed.
RunnerJobOutcomeEnumPodTimeout RunnerJobOutcomeEnum = "pod_timeout" // A pod could not be scheduled for the job in time.
)

// All RunnerJobOutcomeEnum as []string
Expand All @@ -26,6 +27,7 @@ func AllRunnerJobOutcomeEnum() []string {
string(RunnerJobOutcomeEnumSuccess),
string(RunnerJobOutcomeEnumQueueTimeout),
string(RunnerJobOutcomeEnumExecutionTimeout),
string(RunnerJobOutcomeEnumPodTimeout),
}
}

Expand Down

0 comments on commit f565aa7

Please sign in to comment.