Skip to content

Commit

Permalink
fix: start chain
Browse files Browse the repository at this point in the history
  • Loading branch information
sesheffield committed Sep 23, 2024
1 parent 982a556 commit 129aa25
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/scripts/exit-standby-all-chain-nodes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ do
aws autoscaling exit-standby \
--instance-ids "$chain_node_instance_id" \
--auto-scaling-group-name "$autoscaling_group_name"

while true; do
autoscaling_group_state=$(aws autoscaling describe-auto-scaling-instances --instance-ids "$chain_node_instance_id" | jq -r '[.AutoScalingInstances | .[].LifecycleState] | join(" ")')
if [ "$autoscaling_group_state" == "InService" ]; then
echo "instance ($chain_node_instance_id) is now in inService state"
break
else
echo "instance ($chain_node_instance_id) not in standby state yet (current state: $autoscaling_group_state), waiting 10 seconds"
sleep 10
fi
done
;;
*)
echo "instance ($chain_node_instance_id) not in an elgible state ($autoscaling_group_state) for exiting standby, skipping"
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/cd-seed-chain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ jobs:
- name: get desired version of network
id: kava-version
run: |
echo "KAVA_VERSION=$(cat ${{ inputs.kava_version_filepath }})" >> $GITHUB_OUTPUT
KAVA_VERSION=$(cat ${{ inputs.kava_version_filepath }})
echo "KAVA_VERSION=$KAVA_VERSION" >> $GITHUB_OUTPUT
echo "Kava Version: $KAVA_VERSION"
env:
KAVA_VERSION_FILEPATH: ${{ inputs.kava_version_filepath }}
- name: checkout version of kava used by network
Expand Down

0 comments on commit 129aa25

Please sign in to comment.