-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: add logging to alerts and reports to find non-triggering issues #21684
Conversation
superset/reports/commands/alert.py
Outdated
@@ -166,6 +166,9 @@ def _execute_query(self) -> pd.DataFrame: | |||
logger.warning("A timeout occurred while executing the alert query: %s", ex) | |||
raise AlertQueryTimeout() from ex | |||
except Exception as ex: | |||
logger.warning( | |||
"A general exception occurred while executing the alert query: %s", ex | |||
) | |||
raise AlertQueryError(message=str(ex)) from ex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this exception already log this error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes but i'm curious to see what this error is on it's face because it could be empty.
Codecov Report
@@ Coverage Diff @@
## master #21684 +/- ##
==========================================
+ Coverage 66.80% 66.82% +0.02%
==========================================
Files 1799 1799
Lines 68825 68830 +5
Branches 7314 7314
==========================================
+ Hits 45976 45994 +18
+ Misses 20970 20957 -13
Partials 1879 1879
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
🏷️ preset:2022.39 |
…pache#21684) (cherry picked from commit 84c3cf6)
SUMMARY
Alerts and reports has had some issues where some users report their reports not triggering at their validate time. This pr is the first step in adding some logs to gather error feedback to correct this problem.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION