-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug where PipelineRun hangs after task failure
Previously, the function GetSchedulableTasks was called only if a PipelineRun was in a running state, and it would return an error if called when a PipelineTask had failed. A different change resulted in this function being called when the PipelineRun was in a stopping state due to TaskRun failure, meaning this function returned an error and the PipelineRun failed to be reconciled. This commit renames the function GetSchedulableTasks to GetCandidateTasks, indicating that it returns any tasks with completed ancestors regardless of the state of PipelineRun execution. It is the resposibility of call sites to determine which of these candidate tasks are schedulable. It also updates the function DAGExecutionQueue to pass a list of all completed Tasks (not just successful or skipped ones) to this function.
- Loading branch information
1 parent
33e3a55
commit 155179b
Showing
4 changed files
with
197 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters