michael-s-molina commented on code in PR #31844:
URL: https://github.com/apache/superset/pull/31844#discussion_r1922263982


##########
UPDATING.md:
##########
@@ -24,6 +24,7 @@ assists people when migrating to a new version.
 
 ## Next
 
+- [31844](https://github.com/apache/superset/pull/31844) The 
`ALERT_REPORTS_EXECUTE_AS` and `THUMBNAILS_EXECUTE_AS` config parameters have 
been renamed to `ALERT_REPORTS_EXECUTORS` and `THUMBNAILS_EXECUTORS` 
respectively. A new config flag `CACHE_WARMUP_EXECUTORS` has also been 
introduced to be able to control which user is used to execute cache warmup 
tasks. Finally addition, the config flag `THUMBNAILS_SELENIUM_USER` has been 
removed. To use a fixed executor for async tasks, use the new `FixedExecutor` 
class. See the config

Review Comment:
   > See the config
   
   Did you forget to complete the sentence?



##########
superset/config.py:
##########
@@ -689,17 +689,29 @@ class D3TimeFormat(TypedDict, total=False):
 # This is merely a default
 EXTRA_SEQUENTIAL_COLOR_SCHEMES: list[dict[str, Any]] = []
 
+# User used to execute cache warmup tasks
+# By default, the cache is warmed up using the primary owner. To fall back to 
using
+# a fixed user (admin in this example), use the following configuration:
+#
+# from superset.tasks.types import ExecutorType, FixedExecutor
+#
+# CACHE_WARMUP_EXECUTORS = [ExecutorType.OWNER, FixedExecutor("admin")]
+CACHE_WARMUP_EXECUTORS = [ExecutorType.OWNER]

Review Comment:
   Would be possible to have a more generic configuration that allows future 
async tasks and reduces the number of configurations? Something like:
   
   ```
   ASYNC_TASK_EXECUTORS: dict[AsyncTaskType, ExecutorType] = {}
   ```
   
   



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to