diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-15 10:43:09 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-15 10:43:09 +0000 |
commit | 10796950ae2ea86fd853c6d0937e0aa9bca6f8d0 (patch) | |
tree | 624532802c663edad1dbd5291dac45dd53a0ec84 | |
parent | 52558de736c5e1583c8a1d1a1ae502ef33ec06cc (diff) |
Alert on >= 5000 jobs.
-rwxr-xr-x | bin/custodian-queue | 2 |
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>\" " ) |