Disable rabbit/celery paging
This commit is contained in:
Родитель
9840be9234
Коммит
0cdc333bd6
|
@ -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))
|
||||
|
|
Загрузка…
Ссылка в новой задаче