in ees_network_drive/incremental_sync_command.py [0:0]
def execute(self):
"""This function execute the incremental sync."""
config = self.config
logger = self.logger
current_time = get_current_time()
checkpoint = Checkpoint(config, logger)
drive = config.get_value("network_drive.server_name")
start_time, end_time = checkpoint.get_checkpoint(current_time, drive)
time_range = {"start_time": start_time, "end_time": end_time}
logger.info(f"Indexing started at: {current_time}")
queue = ConnectorQueue(logger)
self.start_producer(queue, time_range)
self.start_consumer(queue)
checkpoint.set_checkpoint(current_time, INDEXING_TYPE, drive)
logger.info(f"Indexing ended at: {get_current_time()}")