You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2023/03/10 08:59:23 UTC

[superset] branch master updated: docs(alerts and reports): Update ExecutorType class (#23323)

This is an automated email from the ASF dual-hosted git repository.

villebro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 2cf75cc0ce docs(alerts and reports): Update ExecutorType class (#23323)
2cf75cc0ce is described below

commit 2cf75cc0ced54c70a916c235f5f61965afed83fe
Author: Íñigo Álvaro Sáenz <i....@stuart.com>
AuthorDate: Fri Mar 10 09:59:12 2023 +0100

    docs(alerts and reports): Update ExecutorType class (#23323)
---
 docs/docs/installation/alerts-reports.mdx | 14 +++++++-------
 superset/config.py                        | 12 ++++++------
 2 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/docs/docs/installation/alerts-reports.mdx b/docs/docs/installation/alerts-reports.mdx
index a193f6ff26..06ebcbd752 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 2a39864922..ae6c100263 100644
--- a/superset/config.py
+++ b/superset/config.py
@@ -1246,12 +1246,12 @@ ALERT_REPORTS_WORKING_TIME_OUT_KILL = True
 # 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