While the pipeline is running and when the user switches tab, we stop polling for resources. When the user switches back we restart polling for runs and runs count.
We poll for metrics when we receive runs. However in order to avoid polling metrics multiple times for the current run we don't poll for metrics. This makes updating metrics in UI to be stopped.
When user switches back to the tab, we need to restart polling for all the three.