Skip to content

Do no delete pod on Pipelines/Task Timeout #9059

@vdemeester

Description

@vdemeester

Feature request

By default, If a TaskRun runs longer than its timeout value, the pod associated with the TaskRun will be deleted. This means that the logs of the TaskRun are not preserved. The deletion of the TaskRun pod is necessary in order to stop TaskRun step containers from running.

We already have keep-pod-on-cancel, but this only applies when the Pipeline/Task is cancelled. We should take into account this feature-flag, and if true, we should respect it when the Pipeline/Task times-out, a.k.a. not deleting the Pod.

Use case

When there is a timeout, the user might want to inspect the Pod (or at least look at the logs) to understand what happened ; especially if the user can already do this when he/she cancels the Pipeline/Task.

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.

Type

No type

Projects

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions