We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 327c052 commit 8e90435Copy full SHA for 8e90435
superset/cli.py
@@ -194,7 +194,7 @@ def worker(workers):
194
celery_app.conf.update(
195
CELERYD_CONCURRENCY=config.get("SUPERSET_CELERY_WORKERS"))
196
197
- worker = celery_worker.worker(app=celery_app)
+ worker = celery_app.Worker(optimization='fair')
198
worker.run()
199
200
superset/config.py
@@ -245,6 +245,8 @@ class CeleryConfig(object):
245
CELERY_RESULT_BACKEND = 'db+sqlite:///celery_results.sqlite'
246
CELERY_ANNOTATIONS = {'tasks.add': {'rate_limit': '10/s'}}
247
CELERYD_LOG_LEVEL = 'DEBUG'
248
+ CELERYD_PREFETCH_MULTIPLIER = 1
249
+ CELERY_ACKS_LATE = True
250
CELERY_CONFIG = CeleryConfig
251
"""
252
CELERY_CONFIG = None
0 commit comments