agent-infra / agent-infra/sandbox

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

Ouverte
#236 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
5.9k
Forks
529
Merge moyen
4 h 8 min
PR mergées (30 j)
4

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.