Skip to content

Commit 16c6bf5

Browse files
committed
Ensure AIOs are only cleaned up after 6 hours
AIO upgrade jobs on SMS regularly exceed 3 hours, so can be culled before they are finished. This commit ensures they are only removed after 6 hours.
1 parent 6f2c13f commit 16c6bf5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/stackhpc-ci-cleanup.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ jobs:
4040
run: |
4141
pip install python-openstackclient -c https://raw.githubusercontent.com/stackhpc/requirements/refs/heads/stackhpc/${{ steps.openstack_release.outputs.openstack_release }}/upper-constraints.txt
4242
43-
- name: Clean up aio instances over 3 hours old
43+
- name: Clean up aio instances over 6 hours old
4444
run: |
4545
result=0
46-
changes_before=$(date -Imin -d -3hours)
46+
changes_before=$(date -Imin -d -6hours)
4747
for status in ACTIVE BUILD ERROR SHUTOFF; do
4848
for instance in $(openstack server list --tags skc-ci-aio --os-compute-api-version 2.66 --format value --column ID --changes-before $changes_before --status $status); do
4949
echo "Cleaning up $status instance $instance"

0 commit comments

Comments
 (0)