diff --git a/docs/docs/installation/alerts-reports.mdx b/docs/docs/installation/alerts-reports.mdx index a193f6ff26593..06ebcbd7525a0 100644 --- a/docs/docs/installation/alerts-reports.mdx +++ b/docs/docs/installation/alerts-reports.mdx @@ -193,15 +193,15 @@ creator if either is contained within the list of owners, otherwise the first ow will be used) and finally `THUMBNAIL_SELENIUM_USER`, set as follows: ```python -from superset.reports.types import ReportScheduleExecutor +from superset.tasks.types import ExecutorType ALERT_REPORTS_EXECUTE_AS = [ - ReportScheduleExecutor.CREATOR_OWNER, - ReportScheduleExecutor.CREATOR, - ReportScheduleExecutor.MODIFIER_OWNER, - ReportScheduleExecutor.MODIFIER, - ReportScheduleExecutor.OWNER, - ReportScheduleExecutor.SELENIUM, + ExecutorType.CREATOR_OWNER, + ExecutorType.CREATOR, + ExecutorType.MODIFIER_OWNER, + ExecutorType.MODIFIER, + ExecutorType.OWNER, + ExecutorType.SELENIUM, ] ``` diff --git a/superset/config.py b/superset/config.py index 2a39864922d93..ae6c1002634e2 100644 --- a/superset/config.py +++ b/superset/config.py @@ -1246,12 +1246,12 @@ def EMAIL_HEADER_MUTATOR( # pylint: disable=invalid-name,unused-argument # creator if either is contained within the list of owners, otherwise the first owner # will be used) and finally `THUMBNAIL_SELENIUM_USER`, set as follows: # ALERT_REPORTS_EXECUTE_AS = [ -# ScheduledTaskExecutor.CREATOR_OWNER, -# ScheduledTaskExecutor.CREATOR, -# ScheduledTaskExecutor.MODIFIER_OWNER, -# ScheduledTaskExecutor.MODIFIER, -# ScheduledTaskExecutor.OWNER, -# ScheduledTaskExecutor.SELENIUM, +# ExecutorType.CREATOR_OWNER, +# ExecutorType.CREATOR, +# ExecutorType.MODIFIER_OWNER, +# ExecutorType.MODIFIER, +# ExecutorType.OWNER, +# ExecutorType.SELENIUM, # ] ALERT_REPORTS_EXECUTE_AS: List[ExecutorType] = [ExecutorType.SELENIUM] # if ALERT_REPORTS_WORKING_TIME_OUT_KILL is True, set a celery hard timeout