From 9af650798cf3ec32a877b2e2b24f0f244ed9c129 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Thu, 29 Aug 2019 10:59:22 +0300 Subject: [PATCH] Use .tasks file to trigger removal of stale cloud resources --- .tasks | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .tasks diff --git a/.tasks b/.tasks new file mode 100644 index 00000000..a30866ac --- /dev/null +++ b/.tasks @@ -0,0 +1,18 @@ +#!/bin/sh + +# When run automated, randomize to minimize stampeding herd +if [ -t 0 ]; then + chance=10 +else + chance=$(shuf -i 0-10 -n 1) +fi + +if [ $chance -gt 9 ]; then + # command lines representing pending work. one will be executed + # randomly by the calling environment + echo "./tests/cleanup/remove_old_objects_alibaba.sh" + echo "./tests/cleanup/remove_old_objects_aws.sh" + echo "./tests/cleanup/remove_old_objects_azure.sh" + echo "./tests/cleanup/remove_old_objects_openstack.sh" + echo "./tests/cleanup/remove_old_objects_vmware.sh" +fi