Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
1fb4730b
Commit
1fb4730b
authored
Nov 26, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Report that cron job is not running
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
43c44553
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
weblate/trans/admin_views.py
weblate/trans/admin_views.py
+8
-1
No files found.
weblate/trans/admin_views.py
View file @
1fb4730b
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# 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.contrib.sites.models
import
Site
from
django.shortcuts
import
render
from
django.shortcuts
import
render
from
django.contrib.admin.views.decorators
import
staff_member_required
from
django.contrib.admin.views.decorators
import
staff_member_required
...
@@ -92,6 +92,13 @@ def performance(request):
...
@@ -92,6 +92,13 @@ def performance(request):
appsettings
.
OFFLOAD_INDEXING
,
appsettings
.
OFFLOAD_INDEXING
,
'production-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
# Check for sane caching
caches
=
settings
.
CACHES
[
'default'
][
'BACKEND'
].
split
(
'.'
)[
-
1
]
caches
=
settings
.
CACHES
[
'default'
][
'BACKEND'
].
split
(
'.'
)[
-
1
]
if
caches
in
[
'MemcachedCache'
,
'DatabaseCache'
]:
if
caches
in
[
'MemcachedCache'
,
'DatabaseCache'
]:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment