超算接入QuantumESPRESSO app
This commit is contained in:
parent
0dc8a3598d
commit
0cef233456
|
|
@ -428,7 +428,7 @@ public class CSCollectServiceImpl implements CSCollectService {
|
|||
|
||||
//2.获取需要用到的调度平台
|
||||
JSONArray hpcAppCluster = getHpcAppCluster(appCode);
|
||||
binding(userId, packageId, hpcAppCluster);
|
||||
binding(userId, packageId, hpcAppCluster,token);
|
||||
redisService.setCacheObject(PACKAGE_KEY + appCode, packageId);
|
||||
}
|
||||
return packageId;
|
||||
|
|
@ -446,7 +446,7 @@ public class CSCollectServiceImpl implements CSCollectService {
|
|||
* @param hpcAppCluster
|
||||
* @return
|
||||
*/
|
||||
private void binding(Integer userId, Integer packageID, JSONArray hpcAppCluster) throws Exception {
|
||||
private void binding(Integer userId, Integer packageID, JSONArray hpcAppCluster,String token) throws Exception {
|
||||
try {
|
||||
String url = csUrl + "/jsm/jobSet/binding";
|
||||
|
||||
|
|
@ -467,8 +467,8 @@ public class CSCollectServiceImpl implements CSCollectService {
|
|||
params.set("userID", userId);
|
||||
params.set("info", info);
|
||||
|
||||
String result = HttpUtils.sendPost(url, null, JSONUtil.toJsonStr(params));
|
||||
returnResDataWithOK(result);
|
||||
String res = HttpUtils.sendBodyPostWithToken(url, params, token);
|
||||
returnResDataWithOK(res);
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
throw e;
|
||||
|
|
|
|||
Loading…
Reference in New Issue