diff --git a/dbm-ui/DBM_README.md b/dbm-ui/DBM_README.md index bf1f8dfb7d..6914bf73ce 100644 --- a/dbm-ui/DBM_README.md +++ b/dbm-ui/DBM_README.md @@ -209,7 +209,7 @@ python manage.py collectstatic --settings=config.dev --noinput #### 3.1 启动celery ```shell -celery worker -A config.prod -Q er_execute,er_schedule -l info +celery -A config.prod worker -Q er_execute,er_schedule -l info ``` >如果用pycharm进行配置的话,可以在运行/调试配置中新建python,在配置选项中选择模块名称(注意不是脚本路径),然后选择.venv的celery文件夹(模块),并在形参中配置celery启动参数 diff --git a/helm-charts/bk-dbm/charts/dbm/templates/deployments/celery/celery-beater.yaml b/helm-charts/bk-dbm/charts/dbm/templates/deployments/celery/celery-beater.yaml index 89c91ca5eb..2fd72d30b2 100644 --- a/helm-charts/bk-dbm/charts/dbm/templates/deployments/celery/celery-beater.yaml +++ b/helm-charts/bk-dbm/charts/dbm/templates/deployments/celery/celery-beater.yaml @@ -41,7 +41,7 @@ spec: - /bin/bash - -c args: - - celery beat -A {{ .Values.envs.djangoSettingsModule }} -l info + - celery -A {{ .Values.envs.djangoSettingsModule }} beat -l info {{- include "dbm.container_env" . | nindent 10 }} resources: {{- toYaml .Values.saas.celeryBeat.resources | nindent 12 }} diff --git a/helm-charts/bk-dbm/charts/dbm/templates/deployments/celery/celery-worker.yaml b/helm-charts/bk-dbm/charts/dbm/templates/deployments/celery/celery-worker.yaml index e3476b9f66..795eba78f1 100644 --- a/helm-charts/bk-dbm/charts/dbm/templates/deployments/celery/celery-worker.yaml +++ b/helm-charts/bk-dbm/charts/dbm/templates/deployments/celery/celery-worker.yaml @@ -41,7 +41,7 @@ spec: - /bin/bash - -c args: - - celery worker -A {{ .Values.envs.djangoSettingsModule }} -P threads -c 100 --maxtasksperchild=50 -O fair --time-limit=1800 -l info + - celery -A {{ .Values.envs.djangoSettingsModule }} worker -P threads -c 100 --max-tasks-per-child 50 -O fair --time-limit 1800 -l info {{- include "dbm.container_env" . | nindent 10 }} resources: {{- toYaml .Values.saas.celeryWorker.resources | nindent 12 }} diff --git a/helm-charts/bk-dbm/charts/dbm/templates/deployments/celery/pipeline-worker.yaml b/helm-charts/bk-dbm/charts/dbm/templates/deployments/celery/pipeline-worker.yaml index 5a54066f2d..260502def5 100644 --- a/helm-charts/bk-dbm/charts/dbm/templates/deployments/celery/pipeline-worker.yaml +++ b/helm-charts/bk-dbm/charts/dbm/templates/deployments/celery/pipeline-worker.yaml @@ -41,7 +41,7 @@ spec: - /bin/bash - -c args: - - celery worker -A {{ .Values.envs.djangoSettingsModule }} -Q er_execute,er_schedule -P threads -c 100 --maxtasksperchild=50 -O fair --time-limit=1800 -l info + - celery -A {{ .Values.envs.djangoSettingsModule }} worker -Q er_execute,er_schedule -P threads -c 100 --max-tasks-per-child 50 -O fair --time-limit 1800 -l info {{- include "dbm.container_env" . | nindent 10 }} resources: {{- toYaml .Values.saas.pipelineWorker.resources | nindent 12 }}