The grid view is sending a lot of requests to the API. (1 for each dag runs displayed).
With the current refresh rate, it's kind of spamming the API server, for instance if all 10 runs displayed are 'running' 10 requests are send every 3 seconds.
We should probably adjust the refresh rate of the grid view. The grid really is an overview and we probably don't need it's entire information refreshed at the same refresh rate as the rest of the App. This could remove some stress from the API.
For instance we could have the 'selected' dag run refreshing at the default refresh interval (if 'pending' status of course) and have the other dag runs refreshed at a much lower frequency.
Note: Also with all these request happening it actually delays other requests. (http1 -> 6 connections limit per origin)
Committer
The grid view is sending a lot of requests to the API. (1 for each dag runs displayed).
With the current refresh rate, it's kind of spamming the API server, for instance if all 10 runs displayed are 'running' 10 requests are send every 3 seconds.
We should probably adjust the refresh rate of the grid view. The grid really is an overview and we probably don't need it's entire information refreshed at the same refresh rate as the rest of the App. This could remove some stress from the API.
For instance we could have the 'selected' dag run refreshing at the default refresh interval (if 'pending' status of course) and have the other dag runs refreshed at a much lower frequency.
Committer