Skip to content

Commit

Permalink
fix(backend): helm启动celery命令修改 #4140
Browse files Browse the repository at this point in the history
  • Loading branch information
ygcyao authored and iSecloud committed Apr 24, 2024
1 parent cea2681 commit 133d44a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dbm-ui/DBM_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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启动参数
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 133d44a

Please sign in to comment.