Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: create (pipeline|task)run timeout checks in background
Both the pipelinerun and taskrun controllers start timeout checks at startup. They do this by iterating though each namespace and spawning a go routine for each pipelinerun/taskrun to run the check in the background. Although each timeout check is done in a go routine, the iteration through namespaces and creation of the timeout checks is done in a blocking manner. This adds significant latency at startup when the number of namespaces is large. Ultimately, this causes a delay in how fast each controllers can actually start reconciling resources. To speed up the startup time, this changes the logic so that the iteration through namespaces is done in the background. The timeout checks were already carried out in separate go routines and were therefore safe to use in a concurrent context, so no extra logic was needed to make this change work in a concurrent context.
- Loading branch information