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 <[email protected]>
  • Loading branch information
shivakunv committed Dec 19, 2024
1 parent 385fcb7 commit 34988d4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/awscleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ jobs:
if [[ -z "$response" || "$response" == "null" ]]; then
continue
fi
echo "SHIVA $response"
is_job_running=$(echo "$response" | jq -r "
is_jobs_not_completed=$(echo "$response" | jq -r "
.jobs? // [] |
map(select(.status == \"in_progress\" or .status == \"queued\")) |
length
")
if [[ "$is_job_running" -eq 0 ]]; then
map(select(.status != \"completed\")) |
length")
if [[ "$is_jobs_not_completed" -eq 0 ]]; then
echo "Holodeck e2e Job status is not in running stage , Delete the dependent resources"
scripts/awscleanup.sh $vpc
fi
Expand Down

0 comments on commit 34988d4

Please sign in to comment.