a cache for slack profile pictures and emojis

chore: update health docs and fix health check printing

dunkirk.sh 1c7a4df0 02f0c124

verified
Changed files
+18 -6
.github
workflows
src
routes
+7 -6
.github/workflows/deploy.yaml
···
BODY=$(echo "$RESPONSE" | sed '$d')
if [ "$HTTP_CODE" = "200" ]; then
-
echo "✅ Service is healthy!"
-
echo "$BODY" | jq '.'
+
STATUS=$(echo "$BODY" | jq -r '.status // "unknown"')
-
# Check if status is actually healthy
-
STATUS=$(echo "$BODY" | jq -r '.status // "unknown"')
if [ "$STATUS" = "healthy" ]; then
-
echo "✅ Deployment successful - service is healthy"
+
echo "✅ Service is healthy"
+
echo "$BODY" | jq '.'
exit 0
elif [ "$STATUS" = "degraded" ]; then
echo "⚠️ Service is degraded but responding"
-
echo "$BODY" | jq '.checks'
+
echo "$BODY" | jq '.'
exit 0
+
else
+
echo "⚠️ Service returned HTTP 200 but status is: $STATUS"
+
echo "$BODY" | jq '.'
fi
fi
+11
src/routes/api-routes.ts
···
heapUsed: { type: "number", description: "MB" },
heapTotal: { type: "number", description: "MB" },
percentage: { type: "number" },
+
details: {
+
type: "object",
+
properties: {
+
heapUsedMiB: { type: "number", description: "Precise heap used in MiB" },
+
heapTotalMiB: { type: "number", description: "Precise heap total in MiB" },
+
heapPercent: { type: "number", description: "Precise heap percentage" },
+
rssMiB: { type: "number", description: "Resident Set Size in MiB" },
+
externalMiB: { type: "number", description: "External memory in MiB" },
+
arrayBuffersMiB: { type: "number", description: "Array buffers in MiB" },
+
},
+
},
},
},
},