You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stopping a workflow leaves Bash background shells started by its subagents running (Linux) #103658
What happens
Subagents in a workflow started long-lived Bash commands (polling loops over ssh, a copy loop, an ssh reconnect loop). After TaskStop on the workflow, those shells kept running: their parent became systemd --user, nothing read their output, and they kept opening ssh connections to a remote build host for over an hour. Together with other load, that host ran out of memory and had to be rebooted. We had to find and kill them by PID.
Expected
Stopping a workflow (or an agent) terminates the process trees its agents started from the Bash tool, or at least lists the survivors so the user can stop them.
Repro
A workflow agent runs, from the Bash tool, something like bash -c 'while true; do ssh host uptime; sleep 30; done' & (or run_in_background).
TaskStop the workflow.
ps -eo pid,ppid,args | grep 'ssh host' → the loop is still alive, reparented to systemd --user.
Related:#101012 (same class on Windows / Git Bash), #74133 (orphaned background sub-agents).
Activity