mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
refactor: adopt --app as celery global option (#15053)
This commit is contained in:
@@ -1080,11 +1080,11 @@ have the same configuration.
|
||||
|
||||
* To start a Celery worker to leverage the configuration run: ::
|
||||
|
||||
celery worker --app=superset.tasks.celery_app:app --pool=prefork -O fair -c 4
|
||||
celery --app=superset.tasks.celery_app:app worker --pool=prefork -O fair -c 4
|
||||
|
||||
* To start a job which schedules periodic background jobs, run ::
|
||||
|
||||
celery beat --app=superset.tasks.celery_app:app
|
||||
celery --app=superset.tasks.celery_app:app beat
|
||||
|
||||
To setup a result backend, you need to pass an instance of a derivative
|
||||
of ``from cachelib.base.BaseCache`` to the ``RESULTS_BACKEND``
|
||||
|
||||
@@ -246,7 +246,7 @@ services:
|
||||
- superset
|
||||
- postgres
|
||||
- redis
|
||||
command: "celery worker --app=superset.tasks.celery_app:app --pool=gevent --concurrency=500"
|
||||
command: "celery --app=superset.tasks.celery_app:app worker --pool=gevent --concurrency=500"
|
||||
volumes:
|
||||
- ./config/:/app/pythonpath/
|
||||
beat:
|
||||
@@ -258,7 +258,7 @@ services:
|
||||
- superset
|
||||
- postgres
|
||||
- redis
|
||||
command: "celery beat --app=superset.tasks.celery_app:app --pidfile /tmp/celerybeat.pid --schedule /tmp/celerybeat-schedule"
|
||||
command: "celery --app=superset.tasks.celery_app:app beat --pidfile /tmp/celerybeat.pid --schedule /tmp/celerybeat-schedule"
|
||||
volumes:
|
||||
- ./config/:/app/pythonpath/
|
||||
superset:
|
||||
|
||||
@@ -57,13 +57,13 @@ CELERY_CONFIG = CeleryConfig
|
||||
To start a Celery worker to leverage the configuration, run the following command:
|
||||
|
||||
```
|
||||
celery worker --app=superset.tasks.celery_app:app --pool=prefork -O fair -c 4
|
||||
celery --app=superset.tasks.celery_app:app worker --pool=prefork -O fair -c 4
|
||||
```
|
||||
|
||||
To start a job which schedules periodic background jobs, run the following command:
|
||||
|
||||
```
|
||||
celery beat --app=superset.tasks.celery_app:app
|
||||
celery --app=superset.tasks.celery_app:app beat
|
||||
```
|
||||
|
||||
To setup a result backend, you need to pass an instance of a derivative of from
|
||||
|
||||
Reference in New Issue
Block a user