From 1345cca1d38dcb02b6d9091d36618524cddc6cc9 Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Wed, 18 Jan 2012 10:17:58 +0100 Subject: [PATCH] dont use celery to index - seems it gets blocked on index file access --- apps/catalogue/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/catalogue/models.py b/apps/catalogue/models.py index fbae111ea..3ccdcadeb 100644 --- a/apps/catalogue/models.py +++ b/apps/catalogue/models.py @@ -792,7 +792,8 @@ class Book(models.Model): book.build_mobi() if not settings.NO_SEARCH_INDEX and search_index: - index_book.delay(book.id, book_info) + book.search_index() + #index_book.delay(book.id, book_info) book_descendants = list(book.children.all()) descendants_tags = set() -- 2.20.1