bash-mcp: kill of a pending task reports failure when the task file write fails
A failed write left the task Pending on disk, so the poll loop still started it while the kill reply said it was cancelled.
This commit is contained in:
parent
7294707d7d
commit
5cec29ff49
2 changed files with 37 additions and 2 deletions
|
|
@ -256,7 +256,8 @@ impl BashMcp {
|
|||
let (killed, was_running) = runner::kill_task(&args.id, args.force);
|
||||
if !killed {
|
||||
return format!(
|
||||
"no running or pending task with id `{}` (already finished or unknown)",
|
||||
"no running or pending task with id `{}` could be killed (already finished, unknown, \
|
||||
or its pending file could not be updated — see the daemon log)",
|
||||
args.id
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue