From: Marcin Koziej Date: Wed, 18 Jan 2012 09:17:58 +0000 (+0100) Subject: dont use celery to index - seems it gets blocked on index file access X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/1345cca1d38dcb02b6d9091d36618524cddc6cc9 dont use celery to index - seems it gets blocked on index file access --- 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()