Skip to content

Commit

Permalink
Add new phases to Task execution (#52)
Browse files Browse the repository at this point in the history
* Add new phases to Task execution

Signed-off-by: Eduardo Apolinario <[email protected]>
  • Loading branch information
anandswaminathan authored and eapolinario committed Sep 13, 2023
1 parent da6102f commit 2dc9adf
Show file tree
Hide file tree
Showing 14 changed files with 196 additions and 92 deletions.
35 changes: 20 additions & 15 deletions flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.cc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

91 changes: 51 additions & 40 deletions flyteidl/gen/pb-go/flyteidl/core/execution.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -5020,9 +5020,12 @@
"RUNNING",
"SUCCEEDED",
"ABORTED",
"FAILED"
"FAILED",
"INITIALIZING",
"WAITING_FOR_RESOURCES"
],
"default": "UNDEFINED"
"default": "UNDEFINED",
"title": "- INITIALIZING: To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing\n - WAITING_FOR_RESOURCES: To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded"
},
"coreTaskLog": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22277,13 +22277,19 @@ definitions:
retry_attempt: 0
coreTaskExecutionPhase:
type: "string"
title: "- INITIALIZING: To indicate cases where task is initializing, like: ErrImagePull,\
\ ContainerCreating, PodInitializing\n - WAITING_FOR_RESOURCES: To address cases,\
\ where underlying resource is not available: Backoff error, Resource quota\
\ exceeded"
enum:
- "UNDEFINED"
- "QUEUED"
- "RUNNING"
- "SUCCEEDED"
- "ABORTED"
- "FAILED"
- "INITIALIZING"
- "WAITING_FOR_RESOURCES"
default: "UNDEFINED"
coreTaskLog:
type: "object"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ const (
CoreTaskExecutionPhaseSUCCEEDED CoreTaskExecutionPhase = "SUCCEEDED"
CoreTaskExecutionPhaseABORTED CoreTaskExecutionPhase = "ABORTED"
CoreTaskExecutionPhaseFAILED CoreTaskExecutionPhase = "FAILED"
CoreTaskExecutionPhaseINITIALIZING CoreTaskExecutionPhase = "INITIALIZING"
CoreTaskExecutionPhaseWAITING_FOR_RESOURCES CoreTaskExecutionPhase = "WAITING_FOR_RESOURCES"
)
4 changes: 2 additions & 2 deletions flyteidl/gen/pb-go/flyteidl/service/openapi.go

Large diffs are not rendered by default.

63 changes: 49 additions & 14 deletions flyteidl/gen/pb-java/flyteidl/core/Execution.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion flyteidl/gen/pb-js/flyteidl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4109,7 +4109,9 @@ export namespace flyteidl {
RUNNING = 2,
SUCCEEDED = 3,
ABORTED = 4,
FAILED = 5
FAILED = 5,
INITIALIZING = 6,
WAITING_FOR_RESOURCES = 7
}
}

Expand Down
Loading

0 comments on commit 2dc9adf

Please sign in to comment.