summaryrefslogtreecommitdiff
path: root/debian/custodian.cron.daily
diff options
context:
space:
mode:
authorJames Carter <james.carter@bytemark.co.uk>2017-06-26 10:27:32 +0100
committerJames Carter <james.carter@bytemark.co.uk>2017-06-26 10:27:32 +0100
commitebeb36d43a7dc204e59e25a344913eb8f5110959 (patch)
treec49c81bf0d937286ec6d7d165a8c15e4737e730d /debian/custodian.cron.daily
parent8934f73320480b26ff4909139539f4937105610b (diff)
parentfee2b86f096550793f10e5f5a21c5bf71d8d8207 (diff)
Merge branch '12-reap-old-tests' into 'master'
Resolve "The redis view of "known_tests" is often out-of-date" Closes #12 See merge request !8
Diffstat (limited to 'debian/custodian.cron.daily')
-rwxr-xr-xdebian/custodian.cron.daily13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/custodian.cron.daily b/debian/custodian.cron.daily
new file mode 100755
index 0000000..0f78837
--- /dev/null
+++ b/debian/custodian.cron.daily
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+#
+# Ensure that any known-tests are pruned.
+#
+# This is only used if the `redis` alerter is enabled, if this is not
+# used then this will be harmless.
+#
+# (This script is required because redis set-members do not have TTLs
+# so they cannot be reaped automatically.)
+#
+
+/usr/bin/redis-cli del known_tests >/dev/null 2>/dev/null