Commit 1fb4730b authored by Michal Čihař's avatar Michal Čihař

Report that cron job is not running

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 43c44553
......@@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from weblate.trans.models import SubProject
from weblate.trans.models import SubProject, IndexUpdate
from django.contrib.sites.models import Site
from django.shortcuts import render
from django.contrib.admin.views.decorators import staff_member_required
......@@ -92,6 +92,13 @@ def performance(request):
appsettings.OFFLOAD_INDEXING,
'production-indexing',
))
if appsettings.OFFLOAD_INDEXING:
checks.append((
# Translators: Indexing is postponed to cron job
_('Indexing offloading processing'),
IndexUpdate.objects.count() < 20,
'production-indexing',
))
# Check for sane caching
caches = settings.CACHES['default']['BACKEND'].split('.')[-1]
if caches in ['MemcachedCache', 'DatabaseCache']:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment