mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
update sanity checkers to fail for testing purposes
This commit is contained in:
parent
debafdc9ad
commit
27f9c655fb
5 changed files with 10 additions and 9 deletions
|
@ -15,8 +15,8 @@ def main():
|
|||
hostname = socket.gethostname()
|
||||
percent = int(percent.strip('%'))
|
||||
admin_email = settings.ADMINS[0][1]
|
||||
|
||||
if percent > 95:
|
||||
if True:
|
||||
#if percent > 95:
|
||||
requests.post(
|
||||
"https://api.mailgun.net/v2/%s/messages" % settings.MAILGUN_SERVER_NAME,
|
||||
auth=("api", settings.MAILGUN_ACCESS_KEY),
|
||||
|
|
|
@ -23,8 +23,8 @@ def main():
|
|||
delivered = stats['delivered']['total']
|
||||
accepted = stats['delivered']['total']
|
||||
bounced = stats['failed']['permanent']['total'] + stats['failed']['temporary']['total']
|
||||
|
||||
if bounced / float(delivered) > 0.5:
|
||||
if True:
|
||||
#if bounced / float(delivered) > 0.5:
|
||||
requests.post(
|
||||
"https://api.mailgun.net/v2/%s/messages" % settings.MAILGUN_SERVER_NAME,
|
||||
auth=("api", settings.MAILGUN_ACCESS_KEY),
|
||||
|
|
|
@ -17,8 +17,8 @@ def main():
|
|||
hostname = socket.gethostname()
|
||||
modified_minutes = datetime.datetime.now() - modified
|
||||
log_tail = os.popen('tail -n 100 /var/log/redis.log').read()
|
||||
|
||||
if modified < ten_min_ago:
|
||||
if True:
|
||||
#if modified < ten_min_ago:
|
||||
requests.post(
|
||||
"https://api.mailgun.net/v2/%s/messages" % settings.MAILGUN_SERVER_NAME,
|
||||
auth=("api", settings.MAILGUN_ACCESS_KEY),
|
||||
|
|
|
@ -36,8 +36,8 @@ def main():
|
|||
failed = True
|
||||
elif redis_task_fetches <= 0:
|
||||
failed = True
|
||||
|
||||
if failed:
|
||||
if True:
|
||||
#if failed:
|
||||
requests.post(
|
||||
"https://api.mailgun.net/v2/%s/messages" % settings.MAILGUN_SERVER_NAME,
|
||||
auth=("api", settings.MAILGUN_ACCESS_KEY),
|
||||
|
|
|
@ -34,7 +34,8 @@ def main():
|
|||
if work_queue_size > 100 and work_queue_size > (redis_work_queue + QUEUE_DROP_AMOUNT):
|
||||
failed = True
|
||||
|
||||
if failed:
|
||||
if True:
|
||||
#if failed:
|
||||
requests.post(
|
||||
"https://api.mailgun.net/v2/%s/messages" % settings.MAILGUN_SERVER_NAME,
|
||||
auth=("api", settings.MAILGUN_ACCESS_KEY),
|
||||
|
|
Loading…
Add table
Reference in a new issue