taitai42 opened a new issue #13007:
URL: https://github.com/apache/superset/issues/13007
Hello guys,
i'm trying to set a fresh superset instance to send alerts using
docker-compose
i've added a celery beat and flower instance to my docker compose,
i've changed the superset_config to add the following parameters :
```
ENABLE_SCHEDULED_EMAIL_REPORTS = True
ALERTS_REPORTS = True
FEATURE_FLAGS = {
'ALERTS_REPORTS': True,
"THUMBNAILS": True
}
RESULTS_BACKEND = RedisCache(host=REDIS_HOST, port=REDIS_PORT,
key_prefix='superset_results')
EMAIL_REPORTS_WEBDRIVER = 'firefox'
EMAIL_REPORTS_USER = 'Admin'
WEBDRIVER_BASEURL = "http://0.0.0.0:8088/"
ENABLE_ALERTS = True
THUMBNAIL_SELENIUM_USER = "Admin"
DATA_CACHE_CONFIG = {
'CACHE_TYPE': 'redis',
'CACHE_DEFAULT_TIMEOUT': 60 * 60 * 24, # 1 day default (in secs)
'CACHE_REDIS_URL': f'redis://{REDIS_HOST}:{REDIS_PORT}/0',
}
class CeleryConfig(object):
BROKER_URL = f'redis://{REDIS_HOST}:{REDIS_PORT}/0'
CELERY_IMPORTS = (
'superset.sql_lab',
'superset.tasks',
)
CELERY_RESULT_BACKEND = f'redis://{REDIS_HOST}:{REDIS_PORT}/0'
CELERYD_LOG_LEVEL = 'DEBUG'
CELERYD_PREFETCH_MULTIPLIER = 10
CELERY_ACKS_LATE = True
CELERY_ANNOTATIONS = {
'sql_lab.get_sql_results': {
'rate_limit': '100/s',
},
'email_reports.send': {
'rate_limit': '1/s',
'time_limit': 120,
'soft_time_limit': 150,
'ignore_result': True,
},
}
CELERYBEAT_SCHEDULE = {
'email_reports.schedule_hourly': {
'task': 'email_reports.schedule_hourly',
'schedule': crontab(minute='*', hour='*'),
},
'alerts.schedule_check': {
'task': 'alerts.schedule_check',
'schedule': crontab(minute='*', hour='*')
},
}
CELERY_CONFIG = CeleryConfig
```
i end up having the following options in my superset :

any alerts set into the alerts, or email schedule through dashboard emails
are properly sent,
but the ones set through the alerts & reports menu are not being triggered
at all, i don't even see the task sent to celery.
i don't find anything that could help me on the doc, does anyone run into
the same issue?
thanks
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]