dont use celery to index - seems it gets blocked on index file access
authorMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Wed, 18 Jan 2012 09:17:58 +0000 (10:17 +0100)
committerMarcin Koziej <marcin.koziej@nowoczesnapolska.org.pl>
Wed, 18 Jan 2012 09:17:58 +0000 (10:17 +0100)
apps/catalogue/models.py

index fbae111..3ccdcad 100644 (file)
@@ -792,7 +792,8 @@ class Book(models.Model):
             book.build_mobi()
 
         if not settings.NO_SEARCH_INDEX and search_index:
             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()
 
         book_descendants = list(book.children.all())
         descendants_tags = set()