forked from tektoncd/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid API server call to get Pod when sidecars are stopped
If the TaskRun status indicates that all sidecars are already stopped, there's no need to hit the API server to get the Pod's status to attempt to stop the sidecars. This can avoid a lot of API calls, especially during global resync, when TaskRuns' sidecars are already stopped. This moves metrics.RecordPodLatency to only be called when sidecars are detected to be ready, before starting the first step, instead of any time a completed taskrun is observed (incl during a global resync)
- Loading branch information
1 parent
2ee1383
commit 873edd2
Showing
2 changed files
with
93 additions
and
113 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