Skip to content
Merged
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
3 changes: 3 additions & 0 deletions scripts/wait_readyz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ while (( SECONDS < deadline )); do
if [[ "$status" == "ready" ]]; then
elapsed=$((SECONDS - start))
echo "readyz: status=ready in ${elapsed}s"
# Timing lands in /tmp by default, which suits CI and Docker. Set
# STATEWAVE_COLD_TIMING_FILE to write elsewhere — e.g. where /tmp is
# missing or read-only, or to keep the value as a build artifact.
printf '%s\n' "$elapsed" > "${STATEWAVE_COLD_TIMING_FILE:-/tmp/statewave_cold_ready_seconds}"
exit 0
fi
Expand Down