-
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.
TEP-0121: Move metrics recorder out of reconcile() to ReconcileKind()
TEP-0121: Rewrite metric recorder for TaskRun Retries Prior to this commit, metrics recording durationAndCountMetrics() is in reconcile() (instead of ReconcileKind()), which only counts the taskrun numbers where the taskruns that have no preparation error / not cancelled right after scheduled / not timed out before calling reconcile() (for example, be pending for a long time.). This commit moves durationAndCountMetrics() into ReconcileKind() to address the issue above. It's worth mentioning that the recording metrics logic was originally in the ReconcileKind() function, but the commit 1375219, aming at addressing the recount issue, **moves that logic to `reconcile()`** [1] (probably for better code style? 🤔). [1] 1375219#diff-6e67e9c647bbe2a08807ff5ccbdd7dc9036df373e56b9774d3996f92ab7ceabaL138-L145
- Loading branch information
1 parent
a127323
commit 49224af
Showing
2 changed files
with
183 additions
and
2 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