Merge pull request #10255 from Sumynwa/sumsharma/metrics_ci_kill_kata_components

ci: send SIGKILL to kill kata components
This commit is contained in:
GabyCT 2024-09-05 12:04:57 -06:00 committed by GitHub
commit 4b257bcbb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -302,7 +302,7 @@ function kill_kata_components() {
# iterate over the list of kata components and stop them
for (( i=1; i<=ATTEMPTS; i++ )); do
for PID_NAME in "${PID_NAMES[@]}"; do
[[ ! -z "$(pidof ${PID_NAME})" ]] && sudo killall "${PID_NAME}" >/dev/null 2>&1 || true
[[ ! -z "$(pidof ${PID_NAME})" ]] && sudo killall -w -s SIGKILL "${PID_NAME}" >/dev/null 2>&1 || true
done
sleep 1
done