feature: OnError
mode to cancel in-progress TaskRuns
#8671
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
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
modestopAndFail
suggests that running-tasks would be stopped/cancelled, but if that is not the correct semantics ofstopAndFail
then this request is to support a newonError
option (not sure what would be a more appropriate name thanstopAndFail
) which would behave likestopAndFail
, but also cancel all running TaskRuns associated with the failed PipelineRun.The text was updated successfully, but these errors were encountered: