Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove build queue length warning on build list page #4018

Merged
merged 1 commit into from
Apr 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions readthedocs/builds/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
from readthedocs.core.utils import trigger_build
from readthedocs.projects.models import Project

from redis import Redis, ConnectionError


log = logging.getLogger(__name__)

Expand Down Expand Up @@ -67,12 +65,6 @@ def get_context_data(self, **kwargs):
context['versions'] = Version.objects.public(user=self.request.user, project=self.project)
context['build_qs'] = self.get_queryset()

try:
redis = Redis.from_url(settings.BROKER_URL)
context['queue_length'] = redis.llen('celery')
except ConnectionError:
context['queue_length'] = None

return context


Expand Down
12 changes: 0 additions & 12 deletions readthedocs/templates/builds/build_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,6 @@
{% block content %}


<!-- BEGIN queue depth warning -->
{% if queue_length > 10 %}
<div>
<p>
{% blocktrans with queue_length as queue_length %}
Whoa! The build queue is {{ queue_length }} tasks long, new builds may take a while.
{% endblocktrans %}
</p>
</div>
{% endif %}


<div id="build_list">

{% autopaginate build_qs 15 %}
Expand Down