Skip to content

Commit

Permalink
fix: update celery config imports (apache#29862)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Aug 5, 2024
1 parent e011c91 commit 9fed576
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docker/pythonpath_dev/superset_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,12 @@

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
Expand Down
7 changes: 6 additions & 1 deletion superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,12 @@ class D3TimeFormat(TypedDict, total=False):

class CeleryConfig: # pylint: disable=too-few-public-methods
broker_url = "sqla+sqlite:///celerydb.sqlite"
imports = ("superset.sql_lab", "superset.tasks.scheduler")
imports = (
"superset.sql_lab",
"superset.tasks.scheduler",
"superset.tasks.thumbnails",
"superset.tasks.cache",
)
result_backend = "db+sqlite:///celery_results.sqlite"
worker_prefetch_multiplier = 1
task_acks_late = False
Expand Down

0 comments on commit 9fed576

Please sign in to comment.