From 5c8ce56e871077efe80857c98b256e3553a75e44 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 13 Jan 2022 13:27:01 -0500 Subject: [PATCH] GHA execution throttling #3739 --- misc/actions/execution-throttle.sh | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 misc/actions/execution-throttle.sh diff --git a/misc/actions/execution-throttle.sh b/misc/actions/execution-throttle.sh deleted file mode 100644 index df6611f0d2..0000000000 --- a/misc/actions/execution-throttle.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -# -# we use this script to reduce github actions load by executing some tasks less frequent than always -# param: THRESHOLD, rate of SKIPPING task, from 0 to 100. No skipping if zero, always skipping if 100. -# - -THRESHOLD=$1 -if [ -z $THRESHOLD ] ; then - echo "Throttle threshold not specified, allowing always" - exit 0 -fi - -RANDOM100=$(($RANDOM % 100)) -msg="Random ${RANDOM100} while threshold $THRESHOLD:" - -if (( ${RANDOM100} > $THRESHOLD )); then - echo "$msg Allowing" - exit 0 -else - echo "$msg Not this time, maybe next time" - exit -1 -fi