Skip to content

Commit

Permalink
improve wait-for-scan logic - 4
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed Sep 27, 2024
1 parent a860014 commit 07a3ba0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/launch_scripts/local-scan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ while [ ${#pidmap[@]} -gt 0 ]; do
sleep 5 # May need to wait for output files to be written
kill "${!pidmap[@]}" 2>/dev/null # kill all
exit 1
else
echo "SUCCESS: component '${pidmap[$finished_pid]}' completed successfully"
fi
# Remove the finished PID from the associative array
unset pidmap["$finished_pid"]
Expand Down

0 comments on commit 07a3ba0

Please sign in to comment.