docs(cache): update doc strings (#22865)

This commit is contained in:
Cemre Mengu 2023-01-26 10:18:22 +03:00 committed by GitHub
parent a2ca24682d
commit f8edcd7ae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

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