Shortening task error restart to 10m from 1h.

This commit is contained in:
Samuel Clay 2013-05-24 13:18:05 -07:00
parent 35a6913aec
commit 18d750091d
2 changed files with 6 additions and 7 deletions

View file

@ -52,7 +52,7 @@ class TaskFeeds(Task):
cp2 = time.time() cp2 = time.time()
# Mistakenly inactive feeds # Mistakenly inactive feeds
hours_ago = (now - datetime.timedelta(hours=1)).strftime('%s') hours_ago = (now - datetime.timedelta(minutes=10)).strftime('%s')
old_tasked_feeds = r.zrangebyscore('tasked_feeds', 0, hours_ago) old_tasked_feeds = r.zrangebyscore('tasked_feeds', 0, hours_ago)
inactive_count = len(old_tasked_feeds) inactive_count = len(old_tasked_feeds)
if inactive_count: if inactive_count:

View file

@ -35,9 +35,9 @@
table { table {
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#533754), to(#372238)); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#533754), to(#372238));
background: -moz-linear-gradient(center top , #533754 0%, #372238 100%) repeat scroll 0 0 transparent; background: -moz-linear-gradient(center top , #533754 0%, #372238 100%) repeat scroll 0 0 transparent;
/* background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#304332), to(#172018)); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#304332), to(#172018));
background: -moz-linear-gradient(center top , #304332 0%, #172018 100%) repeat scroll 0 0 transparent; background: -moz-linear-gradient(center top , #304332 0%, #172018 100%) repeat scroll 0 0 transparent;
*/ } }
#container { #container {
width: 500px width: 500px
} }
@ -74,7 +74,7 @@
margin: 0 0 48px; margin: 0 0 48px;
} }
</style> </style>
<title>NewsBlur is upgrading...</title> <title>NewsBlur is in maintenance mode...</title>
</head> </head>
<body> <body>
<table height="100%" width="100%"> <table height="100%" width="100%">
@ -82,10 +82,9 @@
<td align="center" valign="middle"> <td align="center" valign="middle">
<div id="container"> <div id="container">
<img src="/media/img/logo_512.png" class="logo"> <img src="/media/img/logo_512.png" class="logo">
<h1>NewsBlur has been <span class="error404">upgraded</span></h1> <h1>NewsBlur is in <span class="error404">maintenance mode</span></h1>
<div class="description"> <div class="description">
<p>A huge thank you to all of you beta testers. You've made this deployment and redesign as close to painless as it gets.</p> <p>PostgreSQL server fell over, fixing...</p>
<p>Now go back to <a href="//www.newsblur.com">www.newsblur.com</a>, I've got new things to test on this server.</p>
</div> </div>
</div> </div>
</td> </td>