Skip to content

BrainAPI is a knowledge graph–powered AI memory layer that transforms unstructured data into structured knowledge, enabling intelligent search, recommendations, and contextual memory for AI agents and applications.

Wait for a stopping heavy runner before starting it.

Christian691704d6725c
diff --git a/.github/workflows/heavy-validation.yaml b/.github/workflows/heavy-validation.yaml
index 25c3445..50a6c1a 100644
--- a/.github/workflows/heavy-validation.yaml
+++ b/.github/workflows/heavy-validation.yaml
@@ -32,6 +32,10 @@ jobs:
set -euo pipefail
state="$(aws ec2 describe-instances --instance-ids "$INSTANCE_ID" --query 'Reservations[0].Instances[0].State.Name' --output text)"
echo "instance state=$state"
+ if [[ "$state" == "stopping" || "$state" == "shutting-down" ]]; then
+ aws ec2 wait instance-stopped --instance-ids "$INSTANCE_ID"
+ state=stopped
+ fi
if [[ "$state" != "running" && "$state" != "pending" ]]; then
aws ec2 start-instances --instance-ids "$INSTANCE_ID"
fi