This commit is contained in:
Wil Clouser 2011-04-21 09:58:09 -07:00
Родитель 9840be9234
Коммит 0cdc333bd6
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -100,7 +100,11 @@
<div class="notification-box {{ status(status_summary.rabbit) }}">
<h2>[RabbitMQ] celeryd queues</h2>
<p>Tasks are sent to rabbit in a cronjob and results are stored in redis.</p>
<p>Tasks are sent to rabbit in a cronjob and results are stored in
redis.<strong>I disabled the paging on this because a broken check is worse
than no check at all. Times (such as they are) are still reported here
and in the logs. --clouserw</strong>
</p>
<ul>
{% for queue, (threshold, actual) in rabbit_results.items() %}
<li>

Просмотреть файл

@ -160,7 +160,7 @@ def monitor(request, format=None):
status_summary['rabbit'] = True
for queue, (threshold, actual) in rabbit_results.items():
if actual > threshold or actual < 0 or actual is None:
status_summary['rabbit'] = False
# status_summary['rabbit'] = False # Disabled, see template.
monitor_log.critical(
'Celery[%s] did not respond within %s seconds. (actual: %s)'
% (queue, threshold, actual))