Skip to content

Commit

Permalink
More timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
noisekit committed Dec 6, 2024
1 parent 88730b9 commit 2db010c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions appspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ hooks:
timeout: 360
BeforeInstall:
- location: scripts/before-install.sh
timeout: 180
timeout: 300
AfterInstall:
- location: scripts/after-install.sh
timeout: 180
timeout: 300
ApplicationStart:
- location: scripts/app-start.sh
timeout: 180
timeout: 300
ValidateService:
- location: scripts/validate.sh
timeout: 80
1 change: 1 addition & 0 deletions scripts/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ sleep 60
status_code=$(curl --write-out "%{http_code}" --silent --output /dev/null http://localhost:80/status)
if [[ $status_code -ne 200 ]]; then
echo "App is not healthy - status code: $status_code"
curl -v http://localhost:80/status
exit 1
else
echo "App is responding with status code: $status_code"
Expand Down

0 comments on commit 2db010c

Please sign in to comment.