Skip to content

Commit 64516c8

Browse files
author
Xinkai Yi
committed
fix: 修改脚手架中的 app_desc.yaml脚本 --story=130029401
1 parent eb523e1 commit 64516c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

template/{{cookiecutter.project_name}}/app_desc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ modules:
1717
targetPort: 5000
1818
port: 80
1919
- name: schedule
20-
procCommand: celery worker -A blueapps.core.celery -P threads -n schedule_worker@%h -c 500 -Q plugin_schedule,plugin_callback,schedule_delete -l INFO
20+
procCommand: celery worker -A blueapps.core.celery -P prefork -n schedule_worker@%h -c 50 -Q plugin_schedule,plugin_callback,schedule_delete -l INFO --max-tasks-per-child=1000 --time-limit=300
2121
- name: beat
22-
procCommand: celery beat -A blueapps.core.celery -l INFO
22+
procCommand: celery beat -A blueapps.core.celery -l INFO --pidfile=/tmp/celerybeat.pid --schedule=/tmp/celerybeat-schedule
2323
- name: c-monitor
2424
procCommand: celery-prometheus-exporter --broker amqp://$RABBITMQ_USER:$RABBITMQ_PASSWORD@$RABBITMQ_HOST:$RABBITMQ_PORT/$RABBITMQ_VHOST --addr 0.0.0.0:5001 --queue-list plugin_schedule plugin_callback schedule_delete
2525
configuration:

0 commit comments

Comments
 (0)