Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving from flytepropeller - Adding flags for ignore-retry-cause and default-max-attempts #4153

Merged
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ type TaskExecutionMetadata interface {
GetSecurityContext() core.SecurityContext
IsInterruptible() bool
GetPlatformResources() *v1.ResourceRequirements
GetInterruptibleFailureThreshold() uint32
GetInterruptibleFailureThreshold() int32
GetEnvironmentVariables() map[string]string
}

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

Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func NewSubTaskExecutionMetadata(taskExecutionMetadata pluginsCore.TaskExecution
}

subTaskExecutionID := NewSubTaskExecutionID(taskExecutionMetadata.GetTaskExecutionID(), executionIndex, retryAttempt)
interruptible := taskExecutionMetadata.IsInterruptible() && uint32(systemFailures) < taskExecutionMetadata.GetInterruptibleFailureThreshold()
interruptible := taskExecutionMetadata.IsInterruptible() && int32(systemFailures) < taskExecutionMetadata.GetInterruptibleFailureThreshold()
return SubTaskExecutionMetadata{
taskExecutionMetadata,
utils.UnionMaps(taskExecutionMetadata.GetAnnotations(), secretsMap),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ spec:
kind: task
name: svm_trainer
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.containerization.multi_images.svm_trainer" '
n1:
id: n1
Expand Down Expand Up @@ -104,8 +102,6 @@ spec:
kind: task
name: svm_predictor
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.containerization.multi_images.svm_predictor" '
start-node:
id: start-node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ spec:
kind: task
name: ellipse-area-metadata-shell
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"ellipse-area-metadata-shell" '
n1:
id: n1
Expand All @@ -144,8 +142,6 @@ spec:
kind: task
name: ellipse-area-metadata-python
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"ellipse-area-metadata-python" '
n2:
id: n2
Expand All @@ -163,8 +159,6 @@ spec:
kind: task
name: ellipse-area-metadata-r
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"ellipse-area-metadata-r" '
n3:
id: n3
Expand All @@ -182,8 +176,6 @@ spec:
kind: task
name: ellipse-area-metadata-haskell
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"ellipse-area-metadata-haskell" '
n4:
id: n4
Expand All @@ -201,8 +193,6 @@ spec:
kind: task
name: ellipse-area-metadata-julia
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"ellipse-area-metadata-julia" '
n5:
id: n5
Expand Down Expand Up @@ -260,8 +250,6 @@ spec:
kind: task
name: report_all_calculated_areas
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.containerization.raw_container.report_all_calculated_areas" '
start-node:
id: start-node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,24 +107,18 @@ spec:
kind: task
name: secret_task
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.containerization.use_secrets.secret_task" '
n1:
id: n1
kind: task
name: user_info_task
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.containerization.use_secrets.user_info_task" '
n2:
id: n2
kind: task
name: secret_file_task
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.containerization.use_secrets.secret_file_task" '
start-node:
id: start-node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,12 @@ spec:
kind: task
name: write
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.control_flow.chain_tasks.write" '
n1:
id: n1
kind: task
name: read
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.control_flow.chain_tasks.read" '
start-node:
id: start-node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ spec:
kind: branch
name: fractions
resources: {}
retry:
minAttempts: 1
n0-n0:
id: n0-n0
inputBindings:
Expand All @@ -119,8 +117,6 @@ spec:
kind: task
name: double
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.control_flow.conditions.double" '
n0-n1:
id: n0-n1
Expand All @@ -133,8 +129,6 @@ spec:
kind: task
name: square
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.control_flow.conditions.square" '
start-node:
id: start-node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,6 @@ spec:
kind: branch
name: fractions
resources: {}
retry:
minAttempts: 1
n0-n0:
id: n0-n0
inputBindings:
Expand All @@ -141,8 +139,6 @@ spec:
kind: task
name: double
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.control_flow.conditions.double" '
n0-n1:
id: n0-n1
Expand All @@ -155,8 +151,6 @@ spec:
kind: task
name: square
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.control_flow.conditions.square" '
start-node:
id: start-node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ spec:
kind: branch
name: fractions
resources: {}
retry:
minAttempts: 1
n0-n0:
id: n0-n0
inputBindings:
Expand All @@ -147,8 +145,6 @@ spec:
kind: task
name: double
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.control_flow.conditions.double" '
n0-n1:
id: n0-n1
Expand All @@ -161,8 +157,6 @@ spec:
kind: task
name: square
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.control_flow.conditions.square" '
n1:
id: n1
Expand All @@ -175,8 +169,6 @@ spec:
kind: task
name: double
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.control_flow.conditions.double" '
start-node:
id: start-node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ spec:
kind: task
name: coin_toss
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.control_flow.conditions.coin_toss" '
n1:
branch:
Expand All @@ -111,23 +109,17 @@ spec:
kind: branch
name: test
resources: {}
retry:
minAttempts: 1
n1-n0:
id: n1-n0
kind: task
name: success
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.control_flow.conditions.success" '
n1-n1:
id: n1-n1
kind: task
name: failed
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.control_flow.conditions.failed" '
start-node:
id: start-node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,23 +91,17 @@ spec:
kind: branch
name: test
resources: {}
retry:
minAttempts: 1
n0-n0:
id: n0-n0
kind: task
name: success
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.control_flow.conditions.success" '
n0-n1:
id: n0-n1
kind: task
name: failed
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.control_flow.conditions.failed" '
start-node:
id: start-node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ spec:
kind: branch
name: fractions
resources: {}
retry:
minAttempts: 1
n0-n0:
branch:
elseFail:
Expand Down Expand Up @@ -179,8 +177,6 @@ spec:
kind: branch
name: inner_fractions
resources: {}
retry:
minAttempts: 1
n0-n0-n0:
id: n0-n0-n0
inputBindings:
Expand All @@ -192,8 +188,6 @@ spec:
kind: task
name: double
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.control_flow.conditions.double" '
n0-n0-n1:
id: n0-n0-n1
Expand All @@ -206,8 +200,6 @@ spec:
kind: task
name: square
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.control_flow.conditions.square" '
n0-n1:
id: n0-n1
Expand All @@ -220,8 +212,6 @@ spec:
kind: task
name: square
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.control_flow.conditions.square" '
n0-n2:
id: n0-n2
Expand All @@ -234,8 +224,6 @@ spec:
kind: task
name: double
resources: {}
retry:
minAttempts: 1
task: 'resource_type:TASK name:"core.control_flow.conditions.double" '
start-node:
id: start-node
Expand Down
Loading
Loading