We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c88fa7f commit e005530Copy full SHA for e005530
app/views/elastic_cron_helpers.py
@@ -6,7 +6,7 @@
6
"""
7
8
from app.models.event import Event
9
-from app.models.search.sync import rebuild_indices, sync_event_from_database
+from app.models.search.sync import rebuild_indices, sync_event_from_database, sync
10
from app.views.celery_ import celery
11
from app.views.elastic_search import connect_from_config
12
from app.views.postgres import get_session_from_config
@@ -25,5 +25,4 @@ def cron_rebuild_events_elasticsearch():
25
26
def sync_events_elasticsearch():
27
"""Sync all newly created, updated or deleted events"""
28
- elastic = connect_from_config()
29
- elastic.sync()
+ sync()
0 commit comments