This commit is contained in:
Binh Nguyen 2024-05-05 02:12:56 -03:00 committed by GitHub
commit db9e159eb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View File

@ -104,6 +104,14 @@ class CeleryConfig:
broker_url = CELERY_REDIS_URL
result_backend = CELERY_REDIS_URL
{{ if .Values.celeryConfigOverrides }}
# Overrides
{{- range $key, $value := .Values.celeryConfigOverrides }}
# {{ $key }}
{{ tpl $value $ }}
{{- end }}
{{- end }}
CELERY_CONFIG = CeleryConfig
RESULTS_BACKEND = RedisCache(
host=env('REDIS_HOST'),

View File

@ -179,6 +179,12 @@ configOverridesFiles: {}
# extend_timeout: extend_timeout.py
# enable_oauth: enable_oauth.py
# -- A dictionary of overrides to append at the end of CeleryConfig in superset_config.py - the name does not matter
# WARNING: the order is not guaranteed
celeryConfigOverrides: {}
# beat_schedule: |
# CELERY_BEAT_SCHEDULE = {'reports.scheduler': {'task': 'reports.scheduler', 'schedule': crontab(minute='*', hour='*')},'reports.prune_log': {'task': 'reports.prune_log','schedule': crontab(minute=0, hour=0)}}
configMountPath: "/app/pythonpath"
extraConfigMountPath: "/app/configs"