Import the entire post_init.py file removing the need to seprate init_ prefixed functions
This commit is contained in:
@@ -8,7 +8,6 @@ from .settings import INDEX_UPDATE_INTERVAL
|
||||
from .jobs import search_index_update
|
||||
|
||||
|
||||
def init_start_indexing_job():
|
||||
dynamic_search_scheduler = LocalScheduler('search', _(u'Search'))
|
||||
dynamic_search_scheduler.add_interval_job('search_index_update', _(u'Update the search index with the most recent modified documents.'), search_index_update, seconds=INDEX_UPDATE_INTERVAL)
|
||||
dynamic_search_scheduler.start()
|
||||
dynamic_search_scheduler = LocalScheduler('search', _(u'Search'))
|
||||
dynamic_search_scheduler.add_interval_job('search_index_update', _(u'Update the search index with the most recent modified documents.'), search_index_update, seconds=INDEX_UPDATE_INTERVAL)
|
||||
dynamic_search_scheduler.start()
|
||||
|
||||
Reference in New Issue
Block a user