You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2023/01/26 07:18:31 UTC

[superset] branch master updated: docs(cache): update doc strings (#22865)

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

rusackas 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 f8edcd7ae2 docs(cache): update doc strings (#22865)
f8edcd7ae2 is described below

commit f8edcd7ae2f1a716505327770b5abaa7691c784a
Author: Cemre Mengu <ce...@gmail.com>
AuthorDate: Thu Jan 26 10:18:22 2023 +0300

    docs(cache): update doc strings (#22865)
---
 superset/tasks/cache.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/superset/tasks/cache.py b/superset/tasks/cache.py
index 0bda1e7084..bdbf8add7e 100644
--- a/superset/tasks/cache.py
+++ b/superset/tasks/cache.py
@@ -55,7 +55,7 @@ class Strategy:  # pylint: disable=too-few-public-methods
 
     Strategies can be configured in `superset/config.py`:
 
-        CELERYBEAT_SCHEDULE = {
+        beat_schedule = {
             'cache-warmup-hourly': {
                 'task': 'cache-warmup',
                 'schedule': crontab(minute=1, hour='*'),  # @hourly
@@ -82,7 +82,7 @@ class DummyStrategy(Strategy):  # pylint: disable=too-few-public-methods
 
     This is a dummy strategy that will fetch all charts. Can be configured by:
 
-        CELERYBEAT_SCHEDULE = {
+        beat_schedule = {
             'cache-warmup-hourly': {
                 'task': 'cache-warmup',
                 'schedule': crontab(minute=1, hour='*'),  # @hourly
@@ -105,7 +105,7 @@ class TopNDashboardsStrategy(Strategy):  # pylint: disable=too-few-public-method
     """
     Warm up charts in the top-n dashboards.
 
-        CELERYBEAT_SCHEDULE = {
+        beat_schedule = {
             'cache-warmup-hourly': {
                 'task': 'cache-warmup',
                 'schedule': crontab(minute=1, hour='*'),  # @hourly
@@ -151,7 +151,7 @@ class DashboardTagsStrategy(Strategy):  # pylint: disable=too-few-public-methods
     """
     Warm up charts in dashboards with custom tags.
 
-        CELERYBEAT_SCHEDULE = {
+        beat_schedule = {
             'cache-warmup-hourly': {
                 'task': 'cache-warmup',
                 'schedule': crontab(minute=1, hour='*'),  # @hourly