agent-infra / agent-infra/sandbox

bash api状态判断问题,一直运行中running

未关闭
#236 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
5.9k
派生
529
平均合并
4 小时 8 分钟
30 天内合并 PR
4

描述

执行命令:nohup mvn spring-boot:run > app.log 2>&1 &
异步模式
shell api正常
/v1/shell/view
{
"success": true,
"message": "Session output",
"data": {
"output": "[1] 2144",
"session_id": "ef0edc78-4b3f-4a22-a1eb-4564e9fd254c",
"console": [
{
"ps1": "$ ",
"command": "nohup mvn spring-boot:run > app.log 2>&1 &",
"output": "[1] 2144"
}
],
"status": "completed",
"command": "nohup mvn spring-boot:run > app.log 2>&1 &",
"exit_code": 0,
"full_output_file_path": null
},
"hint": null
}

bash api一直运行中running
/v1/bash/output
{
"session_id": "c136fd7b-2df0-4381-9349-3b642ec8c569",
"command_id": "4ebe36b1-3bae-4a11-8695-335e7ef9b2f8",
"offset": 0,
"stderr_offset": 0,
"wait": true,
"wait_timeout": 5
}
响应
{
"success": true,
"message": "Operation successful",
"data": {
"session_id": "c136fd7b-2df0-4381-9349-3b642ec8c569",
"stdout": "",
"stderr": "",
"offset": 0,
"stderr_offset": 0,
"command": {
"command_id": "4ebe36b1-3bae-4a11-8695-335e7ef9b2f8",
"command": "nohup mvn spring-boot:run > app.log 2>&1 &",
"status": "running",
"exit_code": null,
"stdout_full_output_file_path": null,
"stderr_full_output_file_path": null
},
"stdout_full_output_file_path": null,
"stderr_full_output_file_path": null
},
"hint": null
}

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。