fix: update celery config imports (#29862)

(cherry picked from commit 9fed576cb4)
This commit is contained in:
Maxime Beauchemin
2024-08-05 15:46:53 -07:00
committed by Joe Li
parent 8ea94916d9
commit bfb6ff3394
2 changed files with 12 additions and 2 deletions

View File

@@ -74,7 +74,12 @@ DATA_CACHE_CONFIG = CACHE_CONFIG
class CeleryConfig:
broker_url = f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_CELERY_DB}"
imports = ("superset.sql_lab",)
imports = (
"superset.sql_lab",
"superset.tasks.scheduler",
"superset.tasks.thumbnails",
"superset.tasks.cache",
)
result_backend = f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_RESULTS_DB}"
worker_prefetch_multiplier = 1
task_acks_late = False