Add scripts for cleaning expired storage and updating jobs

This commit is contained in:
Marco Pedone 2025-08-18 09:54:38 +02:00
parent 52712c25d5
commit a7fdb2227a
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,10 @@
#!/bin/bash
set -e # Exit on any error
echo "Starting expired storage cleanup..."
if curl -f --connect-timeout 30 --max-time 300 "http://localhost:1323/storage/remove-expired"; then
echo "Expired storage cleanup completed successfully"
else
echo "Failed to clean expired storage" >&2
exit 1
fi

View file

@ -0,0 +1,10 @@
#!/bin/bash
set -e # Exit on any error
echo "Starting Update job..."
if curl -f --connect-timeout 30 --max-time 300 "http://localhost:1323/update"; then
echo "Update job completed successfully"
else
echo "Failed to Update" >&2
exit 1
fi