|
@@ -560,7 +560,7 @@ function predictorState(port) {
|
|
|
var config = getRustConfig()
|
|
|
|
|
|
|
|
|
- exec(`curl -X GET -H "auth: ${config.headers.auth}" -H "token: ${config.headers.token}" "http://127.0.0.1:${port}/predictor_state"`, (error, stdout, stderr) => {
|
|
|
+ execSync(`curl -X GET -H "auth: ${config.headers.auth}" -H "token: ${config.headers.token}" "http://127.0.0.1:${port}/predictor_state"`, (error, stdout, stderr) => {
|
|
|
if (error) {
|
|
|
logger.info(`#####################汇报:获取状态请求失败: ${error.message}`)
|
|
|
return {'code': -1, 'data': null, "message": `获取状态请求失败`}
|