mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
print df
This commit is contained in:
parent
aaeabc057c
commit
e8b17a7913
2 changed files with 8 additions and 2 deletions
|
|
@ -6,6 +6,11 @@ log() {
|
|||
echo "$timestamp: $message"
|
||||
}
|
||||
|
||||
print_disk_usage() {
|
||||
echo free disk space
|
||||
df -h | grep "/$"
|
||||
}
|
||||
|
||||
wait_for_healthz() {
|
||||
local healthz_url="$1"
|
||||
local timeout_seconds="${2:-30}" # Default timeout of 30 seconds
|
||||
|
|
@ -28,8 +33,7 @@ wait_for_healthz() {
|
|||
return 1
|
||||
fi
|
||||
|
||||
echo print free disk space
|
||||
df -h
|
||||
print_disk_usage
|
||||
|
||||
sleep $sleep_between
|
||||
done
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ set -e
|
|||
|
||||
. ./common_scripts.sh
|
||||
|
||||
print_disk_usage
|
||||
|
||||
print_debug() {
|
||||
log "Received signal to stop"
|
||||
log "Printing debug logs for model_server"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue