Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions clean-ci-resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fi
for arg in "$@"; do
shift
case "$arg" in
"--delete-everything-older-than-5-hours") set -- "$@" "-f" ;;
"--no-dry-run") set -- "$@" "-f" ;;
*) set -- "$@" "$arg"
esac
done
Expand All @@ -27,7 +27,7 @@ while getopts :o:f opt; do
done

if [ $DELETE != 1 ]; then
echo "Refusing to run unless passing the --delete-everything-older-than-5-hours option"
echo "Refusing to run unless passing the --no-dry-run option"
exit 5
fi

Expand Down
2 changes: 1 addition & 1 deletion list-clusters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ print_cluster_id() {
esac
}

VALID_LIMIT="$(date --date='-5 hours' +%s)"
VALID_LIMIT="$(date --date='-7 hours' +%s)"
readonly VALID_LIMIT

declare filter=''
Expand Down
2 changes: 1 addition & 1 deletion stale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fi
declare -r resource_type="$*"

declare valid_limit
valid_limit="$(date --date='-5 hours' +%s)"
valid_limit="$(date --date='-7 hours' +%s)"
readonly valid_limit

list_server() {
Expand Down