justinpark opened a new pull request, #36872: URL: https://github.com/apache/superset/pull/36872
### SUMMARY This PR adds logic to update query progress by referencing the stats info contained in the Trino cursor. Additionally, this commit adds additional parameters (`execute_result` and `execute_event`) to the `handle_cursor` method to detect errors that occur in the execute thread running in parallel while updating query progress through the cursor. When an error is raised in the execute thread, the while loop in `handle_cursor` now properly breaks instead of continuing to poll unnecessarily. This prevents the cursor handling loop from running indefinitely when the execution thread has already failed. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF https://github.com/user-attachments/assets/43b24f53-bf52-4b02-9cb0-01b0594887ec ### TESTING INSTRUCTIONS specs are added ### ADDITIONAL INFORMATION <!--- Check any relevant boxes with "x" --> <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue --> - [ ] 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]
