agent-infra / agent-infra/sandbox
bash api状态判断问题,一直运行中running
- Vorherrschende Sprache
- Python
- Sterne
- 5.9k
- Forks
- 529
- Ø Merge
- 4 Std. 8 Min.
- Gemergte PRs (30 T.)
- 4
Beschreibung
执行命令: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
}
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.