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): def parse_service(s):
all_services = [ web_services = ['gunicorn', 'flower', 'daphne']
'gunicorn', 'celery_ansible', 'celery_default', celery_services = ["celery_ansible", "celery_default", "celery_node_tree", "check_asset_perm_expired"]
'beat', 'flower', 'daphne', 'celery_node_tree', task_services = celery_services + ['beat']
'check_asset_perm_expired', all_services = web_services + task_services
]
if s == 'all': if s == 'all':
return all_services return all_services
elif s == "web": elif s == "web":
return ['gunicorn', 'flower', 'daphne'] return web_services
elif s == 'ws': elif s == 'ws':
return ['daphne'] return ['daphne']
elif s == "task": elif s == "task":
return ["celery_ansible", "celery_default", "beat"] return task_services
elif s == "celery": elif s == "celery":
return ["celery_ansible", "celery_default", "celery_node_tree", "check_asset_perm_expired"] return celery_services
elif "," in s: elif "," in s:
services = set() services = set()
for i in s.split(','): for i in s.split(','):

Loading…
Cancel
Save