Skip to content

feature: OnError mode to cancel in-progress TaskRuns #8671

@aThorp96

Description

@aThorp96

Feature request

Add support for an OnError mode which will not only skip future TaskRuns, but will cancel any TaskRuns which are actively running.

Use case

Given a pipeline with two Tasks which might be long-running and start at the same time, e.g. two suites of end to end tests, if one of them fails after 10 minutes and the other may succeed after an hour, any tasks which have not started will be skipped, but I don't want my other end to end test to continue running for an hour since the pipelinerun will ultimately fail.

The onError mode stopAndFail suggests that running-tasks would be stopped/cancelled, but if that is not the correct semantics of stopAndFail then this request is to support a new onError option (not sure what would be a more appropriate name than stopAndFail) which would behave like stopAndFail, but also cancel all running TaskRuns associated with the failed PipelineRun.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apiIndicates an issue or PR that deals with the API.kind/featureCategorizes issue or PR as related to a new feature.kind/tepCategorizes issue or PR as related to a TEP (or needs a TEP).

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions