Skip to content
Snippets Groups Projects
Commit c10bbc68 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

FIX: add missing arg and notify only in sss

parent ead474d8
Branches
No related tags found
2 merge requests!123REL: Release v0.6.0,!107ENH: setup logging and reporting for serverside execution
Pipeline #35008 failed
...@@ -1167,13 +1167,14 @@ def crawler_main(crawled_directory_path: str, ...@@ -1167,13 +1167,14 @@ def crawler_main(crawled_directory_path: str,
else: else:
inserts, updates = crawler.synchronize(commit_changes=True, unique_names=unique_names, inserts, updates = crawler.synchronize(commit_changes=True, unique_names=unique_names,
crawled_data=crawled_data) crawled_data=crawled_data)
_notify_about_inserts_and_updates(len(inserts), len(updates), userlog_public, if "SHARED_DIR" in os.environ:
crawler.run_id) _notify_about_inserts_and_updates(len(inserts), len(updates), userlog_public,
_update_status_record(crawler.run_id, len(inserts), len(updates), status="OK") crawler.run_id)
_update_status_record(crawler.run_id, len(inserts), len(updates), status="OK")
return 0 return 0
except ConverterValidationError as err: except ConverterValidationError as err:
logger.error(err) logger.error(err)
_update_status_record(0, 0, status="FAILED") _update_status_record(crawler.run_id, 0, 0, status="FAILED")
return 1 return 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment