Skip to content

Commit 743ecef

Browse files
authored
Merge pull request #208 from shiftstack/increase_timeout
Set timeout for cleanup at 7h
2 parents 3328c0b + ab51c2d commit 743ecef

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

clean-ci-resources.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fi
99
for arg in "$@"; do
1010
shift
1111
case "$arg" in
12-
"--delete-everything-older-than-5-hours") set -- "$@" "-f" ;;
12+
"--no-dry-run") set -- "$@" "-f" ;;
1313
*) set -- "$@" "$arg"
1414
esac
1515
done
@@ -27,7 +27,7 @@ while getopts :o:f opt; do
2727
done
2828

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

list-clusters.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ print_cluster_id() {
3434
esac
3535
}
3636

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

4040
declare filter=''

stale.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fi
6161
declare -r resource_type="$*"
6262

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

6767
list_server() {

0 commit comments

Comments
 (0)