justinpark opened a new pull request, #24536: URL: https://github.com/apache/superset/pull/24536
### SUMMARY There's a issue that triggered preview query has gone occasionally. It is because the CLEAR_INACTIVE_QUERIES trigger in a 2s batch time but some queries can be added at the time to verify the inactive queries. This commit adds the threshold to check the inactive queries to fix the problem. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF After: https://github.com/apache/superset/assets/1392866/9c551de3-f318-486d-9705-4fadc708d2d7 Before: https://github.com/apache/superset/assets/1392866/b3e90125-b64e-42c8-a751-51c67c0651a7 ### TESTING INSTRUCTIONS Try to choose tables to make a preview query and open new tab for additional request for preview queries ### ADDITIONAL INFORMATION - [ ] Has associated issue: - [ ] Required feature flags: - [ ] Changes UI - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [ ] Migration is atomic, supports rollback & is backwards-compatible - [ ] Confirm DB migration upgrade and downgrade tested - [ ] Runtime estimates and downtime expectations provided - [ ] Introduces new feature or API - [ ] Removes existing feature or API -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
