in ees_microsoft_outlook/base_indexing_command.py [0:0]
def start_consumer(self, queue):
"""This method starts async calls for the consumer which is responsible for indexing documents to the
Enterprise Search
:param queue: Shared queue to fetch the stored documents
"""
checkpoint = Checkpoint(self.logger, self.config)
thread_count = self.config.get_value("enterprise_search_sync_thread_count")
sync_es = SyncEnterpriseSearch(
self.config, self.logger, self.workplace_search_custom_client, queue
)
self.create_jobs(thread_count, sync_es.perform_sync, (), [])
for checkpoint_data in sync_es.checkpoint_list:
checkpoint.set_checkpoint(
checkpoint_data["current_time"],
checkpoint_data["index_type"],
checkpoint_data["object_type"],
)