agent-infra / agent-infra/sandbox

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

Aperta
#236 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
5.9k
Fork
529
Merge medio
4h 8m
PR unite (30g)
4

Descrizione

执行命令: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
}

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.