Skip to content

Commit

Permalink
fix: Fix typo in the cleanup script (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
askulkarni2 authored Mar 9, 2024
1 parent 5f96cb3 commit 68eec71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ai-ml/jark-stack/terraform/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ echo "Destroying RayService..."

# Delete the Ingress/SVC before removing the addons
TMPFILE=$(mktemp)
terraform -chdir=$SCRIPTDIR output -raw configure_kubectl > "$TMPFILE"
terraform output -raw configure_kubectl > "$TMPFILE"
# check if TMPFILE contains the string "No outputs found"
if [[ ! $(cat $TMPFILE) == *"No outputs found"* ]]; then
echo "No outputs found, skipping kubectl delete"
Expand Down Expand Up @@ -65,7 +65,7 @@ for sg in $(aws ec2 describe-security-groups \

## Final destroy to catch any remaining resources
echo "Destroying remaining resources..."
destroy_output=$(terraform destroy -var="region=$region"-auto-approve 2>&1 | tee /dev/tty)
destroy_output=$(terraform destroy -var="region=$region" -auto-approve 2>&1 | tee /dev/tty)
if [[ ${PIPESTATUS[0]} -eq 0 && $destroy_output == *"Destroy complete"* ]]; then
echo "SUCCESS: Terraform destroy of all modules completed successfully"
else
Expand Down
1 change: 1 addition & 0 deletions ai-ml/jark-stack/terraform/src/service/ray-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
importPath: dogbooth:entrypoint
runtimeEnv: |
env_vars: {"MODEL_ID": "askulkarni2/dogbooth"}
#env_vars: {"MODEL_ID": "stabilityai/stable-diffusion-2-1"}
rayClusterConfig:
rayVersion: '2.6.0'
headGroupSpec:
Expand Down

0 comments on commit 68eec71

Please sign in to comment.