wilmerdooley commented on issue #67336: URL: https://github.com/apache/airflow/issues/67336#issuecomment-4568657878
Option 2 (hide/omit the percentage in the frontend when a state hits the cap) looks like the safer fit. `STATE_COUNT_CAP` is a deliberate performance bound — the endpoint has been actively optimized for large installations (e.g. #62152, #63166) — so returning real counts (option 1) would reintroduce the per-state scan cost the cap exists to avoid. Showing the percentage as approximate (or omitting it) when any state is capped keeps the API fast and stops displaying a wrong number. Happy to put up a PR taking that frontend approach — glad to adjust if maintainers prefer otherwise. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
