Skip to content

Commit

Permalink
Update wakeUpRunner.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonjie authored Jan 31, 2024
1 parent 286f687 commit 7332d9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/ciChecksScripts/wakeUpRunner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ region_opt="--region us-west-2"
runner1=$(aws ec2 describe-instances --profile $profile --filters Name=tag:Name,Values=[super1] Name=network-interface.vpc-id,Values=[$runner_vpc_id] --query "Reservations[*].Instances[*][InstanceId]" ${region_opt} --output text | xargs)
runner2=$(aws ec2 describe-instances --profile $profile --filters Name=tag:Name,Values=[super2] Name=network-interface.vpc-id,Values=[$runner_vpc_id] --query "Reservations[*].Instances[*][InstanceId]" ${region_opt} --output text | xargs)


# start runner1
while true; do
runner_status=$(aws ec2 describe-instances --profile $profile --instance-ids $runner1 --query "Reservations[*].Instances[*].State.[Name]" ${region_opt} --output text)
echo 'runner1 - '$runner_status
Expand All @@ -27,6 +27,7 @@ while true; do
fi
done

# start runner2
while true; do
runner_status=$(aws ec2 describe-instances --profile $profile --instance-ids $runner2 --query "Reservations[*].Instances[*].State.[Name]" ${region_opt} --output text)
echo 'runner2 - '$runner_status
Expand Down

0 comments on commit 7332d9e

Please sign in to comment.