perf: 远程应用调度优先调度的上个主机,使用上个账号,并支持同名账号

This commit is contained in:
ibuler
2023-05-09 19:46:34 +08:00
committed by Jiangjie.Bai
parent ad96fd2a96
commit 0e98990e17
7 changed files with 143 additions and 33 deletions

View File

@@ -172,7 +172,7 @@ class ConnectionToken(JMSOrgBaseModel):
if not applet:
return None
host_account = applet.select_host_account()
host_account = applet.select_host_account(self.user)
if not host_account:
raise JMSException({'error': 'No host account available'})