mirror of https://github.com/apache/superset.git
chore(celery): update celery config variables names (#22499)
This commit is contained in:
parent
79b40bb979
commit
31e639318b
|
@ -52,7 +52,9 @@ little bit helps, and credit will always be given.
|
|||
- [Revert Guidelines](#revert-guidelines)
|
||||
- [Setup Local Environment for Development](#setup-local-environment-for-development)
|
||||
- [Documentation](#documentation)
|
||||
- [Images](#images)
|
||||
- [Local Development](#local-development)
|
||||
- [Build](#build)
|
||||
- [Deployment](#deployment)
|
||||
- [Flask server](#flask-server)
|
||||
- [OS Dependencies](#os-dependencies)
|
||||
- [Dependencies](#dependencies)
|
||||
|
@ -1293,7 +1295,7 @@ To do this, you'll need to:
|
|||
- Start up a celery worker
|
||||
|
||||
```shell script
|
||||
celery --app=superset.tasks.celery_app:app worker -Ofair
|
||||
celery --app=superset.tasks.celery_app:app worker -O fair
|
||||
```
|
||||
|
||||
Note that:
|
||||
|
|
|
@ -37,7 +37,7 @@ fi
|
|||
|
||||
if [[ "${1}" == "worker" ]]; then
|
||||
echo "Starting Celery worker..."
|
||||
celery --app=superset.tasks.celery_app:app worker -Ofair -l INFO
|
||||
celery --app=superset.tasks.celery_app:app worker -O fair -l INFO
|
||||
elif [[ "${1}" == "beat" ]]; then
|
||||
echo "Starting Celery beat..."
|
||||
celery --app=superset.tasks.celery_app:app beat --pidfile /tmp/celerybeat.pid -l INFO -s "${SUPERSET_HOME}"/celerybeat-schedule
|
||||
|
|
|
@ -81,13 +81,12 @@ DATA_CACHE_CONFIG = CACHE_CONFIG
|
|||
|
||||
|
||||
class CeleryConfig(object):
|
||||
BROKER_URL = f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_CELERY_DB}"
|
||||
CELERY_IMPORTS = ("superset.sql_lab",)
|
||||
CELERY_RESULT_BACKEND = f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_RESULTS_DB}"
|
||||
CELERYD_LOG_LEVEL = "DEBUG"
|
||||
CELERYD_PREFETCH_MULTIPLIER = 1
|
||||
CELERY_ACKS_LATE = False
|
||||
CELERYBEAT_SCHEDULE = {
|
||||
broker_url = f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_CELERY_DB}"
|
||||
imports = ("superset.sql_lab",)
|
||||
result_backend = f"redis://{REDIS_HOST}:{REDIS_PORT}/{REDIS_RESULTS_DB}"
|
||||
worker_prefetch_multiplier = 1
|
||||
task_acks_late = False
|
||||
beat_schedule = {
|
||||
"reports.scheduler": {
|
||||
"task": "reports.scheduler",
|
||||
"schedule": crontab(minute="*", hour="*"),
|
||||
|
|
|
@ -875,7 +875,6 @@ class CeleryConfig: # pylint: disable=too-few-public-methods
|
|||
broker_url = "sqla+sqlite:///celerydb.sqlite"
|
||||
imports = ("superset.sql_lab",)
|
||||
result_backend = "db+sqlite:///celery_results.sqlite"
|
||||
worker_log_level = "DEBUG"
|
||||
worker_prefetch_multiplier = 1
|
||||
task_acks_late = False
|
||||
task_annotations = {
|
||||
|
|
Loading…
Reference in New Issue