Skip to content
Snippets Groups Projects
Commit bbad82dc authored by ddamiron's avatar ddamiron
Browse files

hotfix json.dump(log_message)

parent 48a06d33
No related branches found
No related tags found
No related merge requests found
......@@ -233,12 +233,12 @@ def get_metadata_records_processor(the_rabbit,
the_uuid = record['geonet:info']['uuid']
# if is_locked(the_cfg['session']['working_directory'], the_uuid ):
# logging.info("Dataset with uuid = %s is already being indexed: skipping." % the_uuid)
# continue
# else:
# logging.info("Setting lock for dataset with uuid = %s" % the_uuid)
# lock(the_cfg['session']['working_directory'], the_uuid)
if is_locked(the_cfg['session']['working_directory'], the_uuid ):
logging.info("Dataset with uuid = %s is already being indexed: skipping." % the_uuid)
continue
else:
logging.info("Setting lock for dataset with uuid = %s" % the_uuid)
lock(the_cfg['session']['working_directory'], the_uuid)
# delete_dataset_from_indices(cfg, record['geonet:info']['uuid'])
delete_dataset_from_dest_index(the_rabbit=the_rabbit,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment