summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-15 10:43:09 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-15 10:43:09 +0000
commitd293ea8be66fe2e83b8eaabb5cd22e310465b489 (patch)
tree624532802c663edad1dbd5291dac45dd53a0ec84 /bin
parent6f93dcedf743cf83f5494837fbdcd40277e3f6b8 (diff)
Alert on >= 5000 jobs.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/custodian-queue2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/custodian-queue b/bin/custodian-queue
index bab4214..7928105 100755
--- a/bin/custodian-queue
+++ b/bin/custodian-queue
@@ -131,7 +131,7 @@ if __FILE__ == $0 then
stats = queue.stats()
jobs = stats['current-jobs-ready'] || 0
- if ( jobs > 3000 )
+ if ( jobs > 5000 )
system( "mauvesend alert.bytemark.co.uk -i custodian -r now -s \"Our queue has #{jobs} in it\" --detail=\"<p>The custodian queue doesn't seem to be emptying. Is there a bug, or do we need to add more workers?</p>\" " )
else
system( "mauvesend alert.bytemark.co.uk -i custodian -c now -s \"Our queue has #{jobs} in it\" --detail=\"<p>The custodian queue doesn't seem to be emptying. Is there a bug, or do we need to add more workers?</p>\" " )