fix: debugging 502s in pinging (1)
This commit is contained in:
@@ -44,7 +44,7 @@ jobs:
|
|||||||
- name: Register a user and check the status code
|
- name: Register a user and check the status code
|
||||||
run: |
|
run: |
|
||||||
MAX_RETRIES=30
|
MAX_RETRIES=30
|
||||||
RETRY_INTERVAL=5
|
RETRY_INTERVAL=10
|
||||||
CONTAINER_NAME="shuffle-backend"
|
CONTAINER_NAME="shuffle-backend"
|
||||||
|
|
||||||
for (( i=1; i<=$MAX_RETRIES; i++ ))
|
for (( i=1; i<=$MAX_RETRIES; i++ ))
|
||||||
@@ -62,7 +62,8 @@ jobs:
|
|||||||
elif [ "$STATUS_CODE" -ne 502 ]; then
|
elif [ "$STATUS_CODE" -ne 502 ]; then
|
||||||
echo "User registration failed with status code $STATUS_CODE."
|
echo "User registration failed with status code $STATUS_CODE."
|
||||||
echo "Fetching last 30 lines of logs from container $CONTAINER_NAME..."
|
echo "Fetching last 30 lines of logs from container $CONTAINER_NAME..."
|
||||||
docker logs --tail 30 "$CONTAINER_NAME"
|
logs_output=$(docker logs --tail 30 "$CONTAINER_NAME")
|
||||||
|
echo "$logs_output"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user