File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 plugins: [
77 '@semantic-release/commit-analyzer',
88 '@semantic-release/release-notes-generator',
9- '@semantic-release/github'
9+ [ '@semantic-release/github', { successCommentCondition: false, failCommentCondition: false }]
1010 ]
1111}
Original file line number Diff line number Diff line change @@ -26,18 +26,30 @@ delete_service() {
2626
2727 if [[ "$http_code" == 2* ]]; then
2828 echo "Service deletion request accepted (HTTP ${http_code})"
29+ elif [[ "$http_code" == 404 ]]; then
30+ echo "Service already deleted (HTTP ${http_code})"
2931 else
3032 echo "Delete failed (HTTP ${http_code}): $(cat /tmp/delete_response.json)"
33+ return 1
3134 fi
3235}
3336
37+ # Once the service is deleted, the instance keeps running (and being billed) until its
38+ # open requests, like event streams, reach the request timeout: stop it right away
39+ stop_instance() {
40+ echo "Stopping instance"
41+ supervisorctl -c /etc/supervisord.conf shutdown
42+ }
43+
3444while true; do
3545 sleep 30
3646 response=$(curl -s -o /dev/null -w "%{http_code}" --max-time 5 "http://127.0.0.1/geode/health")
3747 echo "response ${response}"
3848
3949 if [ "$response" != "200" ]; then
40- delete_service
50+ if delete_service; then
51+ stop_instance
52+ fi
4153 break
4254 fi
4355done
Original file line number Diff line number Diff line change 11# https://docs.astral.sh/ruff/configuration/
22
3- target-version = "py312 "
3+ target-version = "py314 "
44line-length = 100
55indent-width = 4
66extend-exclude = ["**/schemas/**"] # generated schemas
You can’t perform that action at this time.
0 commit comments