mirror of https://github.com/jumpserver/jumpserver
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
parent
1d49b3deca
commit
2c9c64a13f
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…
Reference in New Issue