Skip to content

Commit

Permalink
Update ci/scripts/driver.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuber-NOAA authored Aug 6, 2024
1 parent faa659e commit 4ef3a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/scripts/driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ for pr in ${pr_list}; do
else
# Check if the driver is still running on the head node; if so, kill it and all child processes
#shellcheck disable=SC2029
ssh "${driver_HOST}" "if ps -p ${driver_PID} 2>&1; then pstree -A -p \"${driver_PID}\" | grep -Eow \"[0-9]+\" | xargs kill; fi"
ssh "${driver_HOST}" "pstree -A -p \"${driver_PID}\" | grep -Eow \"[0-9]+\" | xargs kill || echo \"Failed to kill process with PID: ${driver_PID}, it may not be valid.\""
fi
{
echo "Driver PID: Requested termination of ${driver_PID} and children on ${driver_HOST}"
Expand Down

0 comments on commit 4ef3a00

Please sign in to comment.