Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/github'
['@semantic-release/github', { successCommentCondition: false, failCommentCondition: false }]
]
}
14 changes: 13 additions & 1 deletion cleanup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,30 @@ delete_service() {

if [[ "$http_code" == 2* ]]; then
echo "Service deletion request accepted (HTTP ${http_code})"
elif [[ "$http_code" == 404 ]]; then
echo "Service already deleted (HTTP ${http_code})"
else
echo "Delete failed (HTTP ${http_code}): $(cat /tmp/delete_response.json)"
return 1
fi
}

# Once the service is deleted, the instance keeps running (and being billed) until its
# open requests, like event streams, reach the request timeout: stop it right away
stop_instance() {
echo "Stopping instance"
supervisorctl -c /etc/supervisord.conf shutdown
}

while true; do
sleep 30
response=$(curl -s -o /dev/null -w "%{http_code}" --max-time 5 "http://127.0.0.1/geode/health")
echo "response ${response}"

if [ "$response" != "200" ]; then
delete_service
if delete_service; then
stop_instance
fi
break
fi
done
Expand Down
2 changes: 1 addition & 1 deletion ruff.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# https://docs.astral.sh/ruff/configuration/

target-version = "py312"
target-version = "py314"
line-length = 100
indent-width = 4
extend-exclude = ["**/schemas/**"] # generated schemas
Expand Down
Loading