Browse Source

fix(jms): 启动脚本 task 添加 celery_node_tree, check_asset_perm_expired 两个 worker (#4716)

* fix(jms): 启动脚本 task 添加 celery_node_tree, check_asset_perm_expired 两个 worker

* fix: 修改脚本

Co-authored-by: xinwen <coderWen@126.com>
Co-authored-by: ibuler <ibuler@qq.com>
pull/4719/head
fit2bot 4 years ago committed by GitHub
parent
commit
2c9c64a13f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      jms

15
jms

@ -155,21 +155,20 @@ def is_running(s, unlink=True):
def parse_service(s):
all_services = [
'gunicorn', 'celery_ansible', 'celery_default',
'beat', 'flower', 'daphne', 'celery_node_tree',
'check_asset_perm_expired',
]
web_services = ['gunicorn', 'flower', 'daphne']
celery_services = ["celery_ansible", "celery_default", "celery_node_tree", "check_asset_perm_expired"]
task_services = celery_services + ['beat']
all_services = web_services + task_services
if s == 'all':
return all_services
elif s == "web":
return ['gunicorn', 'flower', 'daphne']
return web_services
elif s == 'ws':
return ['daphne']
elif s == "task":
return ["celery_ansible", "celery_default", "beat"]
return task_services
elif s == "celery":
return ["celery_ansible", "celery_default", "celery_node_tree", "check_asset_perm_expired"]
return celery_services
elif "," in s:
services = set()
for i in s.split(','):

Loading…
Cancel
Save