Skip to content

Commit

Permalink
unused aws instace and vpcs cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: shiva kumar <shivaku@nvidia.com>
  • Loading branch information
shivakunv committed Dec 19, 2024
1 parent 69264e6 commit dd0d16c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/awscleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,12 @@ jobs:
# 2. check if all jobs completed
is_jobs_not_completed=1
echo "SHIVA $response"
echo "$response" | jq -e '.jobs? // null'
echo "SHIVA==="
jobs_exist=$(echo "$response" | jq -e '.jobs? // null' >/dev/null 2>&1; echo $?)
if [[ "$jobs_exist" -ne 0 ]]; then
is_jobs_not_completed=$(echo "$response" | jq -r ".jobs? // [] |
map(select(.status != \"completed\")) |
length")
fi
echo "SHIVA $vpc $jobs_exist $is_jobs_not_completed"
if [[ "$is_jobs_not_completed" -eq 0 ]]; then
echo "Holodeck e2e Job status is not in running stage , Delete the vpc $vpc and dependent resources"
scripts/awscleanup.sh $vpc
Expand Down

0 comments on commit dd0d16c

Please sign in to comment.