fix(#665): kill child on timeout, guard running-for display, drop stale doc ref
This commit is contained in:
parent
1178bb2999
commit
083a100ba1
2 changed files with 31 additions and 29 deletions
|
|
@ -442,7 +442,7 @@ fn format_bash_status(id: &str) -> String {
|
|||
if let Some(code) = task.exit_code {
|
||||
let _ = write!(out, ", exit={code}");
|
||||
}
|
||||
if let Some(t) = task.started_at {
|
||||
if let Some(t) = task.started_at && task.completed_at.is_none() {
|
||||
let age = crate::serve_common::now_unix() - t;
|
||||
let _ = write!(out, ", running for {age}s");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue