-
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.
Account for PipelineRun elapsed time for timeouts
Prior to this change, the `getTaskRunTimeout` function returned a timeout for a new TaskRun with the assumption that the new TaskRun started at the same time that the PipelineRun started. This led to `pipelinerun.timeouts.tasks` being ignored by TaskRun retries or sequential TaskRuns. `pipelinerun.timeouts.finally` has the same problem for retries of finally tasks, but does not have the same problem for multiple separate finally tasks because finally tasks run in parallel. This commit subtracts time that has already been elapsed in the pipelineRun from `pipelinerun.timeouts.tasks` when creating a new TaskRun. The relationship between finally timeout and retries will be addressed in a separate commit. Co-authored-by: Jerop Kipruto [email protected]
- Loading branch information
1 parent
8a11ec1
commit f97df42
Showing
2 changed files
with
58 additions
and
3 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