Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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