Comments (4)
To address the issue with the ALERT & REPORTS feature in your Superset project, follow these steps:
-
Check the
"ALERT_REPORTS"
Feature Flag: Ensure it's enabled in yoursuperset_config.py
:FEATURE_FLAGS = { "ALERT_REPORTS": True }
-
Update Celery Beat Schedule: Ensure you have a schedule for
reports.scheduler
in your Celery configuration:from celery.schedules import crontab class CeleryConfig: beat_schedule = { "reports.scheduler": { "task": "reports.scheduler", "schedule": crontab(minute="*", hour="*"), }, "reports.prune_log": { "task": "reports.prune_log", "schedule": crontab(minute=0, hour=0), }, } CELERY_CONFIG = CeleryConfig
-
Ensure Browser Installation for Screenshots: Confirm a headless browser is installed. For Chrome:
WEBDRIVER_TYPE = "chrome" WEBDRIVER_OPTION_ARGS = [ "--force-device-scale-factor=2.0", "--high-dpi-support=2.0", "--headless", "--disable-gpu", "--disable-dev-shm-usage", "--no-sandbox", "--disable-setuid-sandbox", "--disable-extensions", ]
-
SMTP or Slack Configuration: Ensure your SMTP settings or
SLACK_API_TOKEN
are correctly configured:- Slack:
SLACK_API_TOKEN = "xoxb-your-slack-token"
- Email:
SMTP_HOST = "smtp.sendgrid.net" SMTP_PORT = 2525 SMTP_USER = "your_user" SMTP_PASSWORD = "your_password" SMTP_MAIL_FROM = "[email protected]"
- Slack:
-
Review Celery Worker and Beat Logs: Examine the logs of your Celery worker and beat for additional insights.
-
Fix the "Failed to assign to property 'Path'" Error: Ensure that the properties being assigned are correctly defined and used. For example:
const updateAlertState = (name: string, value: any) => { setCurrentAlert(currentAlertData => ({ ...currentAlertData, [name]: value, })); }; const onPathChange = (event: React.ChangeEvent<HTMLInputElement>) => { const { value } = event.target; updateAlertState('path', value); };
Ensure all configurations, especially those related to Celery, the headless browser, and notification settings, are correct. For more detailed guidance, refer to the Superset documentation [1][2][3].
Details
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
To continue the conversation, mention @dosu.
from superset.
Hello,
It seems that you have 2 issue :
-
issue with sending email : what does your system logs says ? they are usually quite usefull.
-
issue with capturing image : from the documentation https://superset.apache.org/docs/configuration/alerts-reports/
You must install a headless browser, for taking screenshots of the charts and dashboards. Only Firefox and Chrome are currently supported.
If you choose Chrome, you must also change the value of WEBDRIVER_TYPE to "chrome" in your superset_config.py.Note: All the components required (Firefox headless browser, Redis, Postgres db, celery worker and celery beat) are present in the dev docker image if you are following Installing Superset Locally. All you need to do is add the required config variables described in this guide (See Detailed Config).
By the way I would recommend to make it works for csv or txt first and then moove to image
from superset.
@mujohiddin what does your celery status say?
from superset.
Yes please see the docs that @gaful linked. I'm going to convert this to a Discussion, as it is not a bug report of a problem with Superset but instead a request for help getting the configuration set up. Try searching GitHub Discussions and Issues for that error message, it has come up before, e.g. #23057. It has also been addressed in the Slack chat that is open to the public.
from superset.
Related Issues (20)
- A report not yet executed is marked like a success HOT 1
- On Country Map, Cross-Filtering is not operational as a source HOT 2
- ModuleNotFoundError: No module named 'pkg_resources' HOT 1
- Report fails to generate if dashboard doesn't contain a chart HOT 1
- Mixed chart doesn't support forced categorical x-axis HOT 1
- Error: `prophet` package not installed HOT 3
- Very very slow Apache Superset dashboard HOT 8
- Superset 4.0.2 : Table Chart - Column Based Total Calculation HOT 2
- Handlebars chart - pagination support HOT 2
- superset_node build failure @nx/nx-linux-x64-gnu missing module HOT 6
- Mixed chart x-axes overlap for time period of last quarter HOT 1
- Cannot get back asyncquery result HOT 3
- Dev-server page isn't rendered HOT 14
- Garbled characters on the agent page in the development environment HOT 4
- Labels of Advanced analytics stats in the chart legend can't be changed
- Ephemeral instances no longer have any example data HOT 5
- cannot use a string pattern on a bytes-like object HOT 4
- Fatal error when creating a chart from a saved_query via API call HOT 6
- Elasticsearch integration with superst (Arrays are not supported) HOT 1
- Slack Invite is Broken HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from superset.