mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore(celery): Cleanup config and async query specifications (#25314)
This commit is contained in:
@@ -62,10 +62,9 @@ REDIS_RESULTS_DB = os.environ.get("REDIS_RESULTS_DB", 3)
|
||||
|
||||
|
||||
class CeleryConfig:
|
||||
BROKER_URL = f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_CELERY_DB}"
|
||||
CELERY_IMPORTS = ("superset.sql_lab", "superset.tasks.thumbnails")
|
||||
CELERY_ANNOTATIONS = {"sql_lab.add": {"rate_limit": "10/s"}}
|
||||
CONCURRENCY = 1
|
||||
broker_url = f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_CELERY_DB}"
|
||||
imports = ("superset.sql_lab", "superset.tasks.thumbnails")
|
||||
concurrency = 1
|
||||
|
||||
|
||||
CELERY_CONFIG = CeleryConfig
|
||||
|
||||
Reference in New Issue
Block a user