Skip to content

Commit

Permalink
Include bags confirmation in README execution notes
Browse files Browse the repository at this point in the history
  • Loading branch information
HafeezOJ committed Oct 1, 2024
1 parent afa92bd commit 872ae26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,7 @@ These parameters are only available on the command line.
## Execution notes
- ReBACH will attempt to fetch all items in the institutional instance. Items that are not published (curation_status != 'approved') will be ignored.
- Items that are embargoed are also fetched however due to limitations in the API, only the latest version can be fetched until the embargo expires or is removed.
- While fetching, ReBACH checks preservation remote storages for a preserved copy of each item. If a preservation copy of an item is found and confirmed, the item will ignored in subsequent stages.
- Checking preservation final remote storage for a preserved copy of an article requires size of the curation storage folder of the article. If an error occurs while calculating the size of an article curation folder, the error will be recorded and execution will stop except if the --continue-on-error flag is set.
- When processing collections, ReBACH records which items are part of the collection by appending them to collection's JSON as returned by the Figshare API.
- If an item encounters errors, it will not be processed and any partial files are deleted in preservation staging storage.
4 changes: 2 additions & 2 deletions figshare/Article.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,14 @@ def __get_article_metadata_by_version(self, version, article_id):
if payload_size == 0:
if self.system_config['continue-on-error'] == "False":
self.logs.write_log_in_file("error",
f"Curation folder for Article {article_id} version {version['version']} not found.",
f"Curation folder for article {article_id} version {version['version']} not found.",
True)
self.logs.write_log_in_file("info", "Aborting execution.", True)
exit()
self.already_preserved_counts_dict['articles_with_error'].add(article_id)
self.already_preserved_counts_dict['article_versions_with_error'] += 1
self.logs.write_log_in_file("error",
f"Curation folder for Article {article_id} version {version['version']} not found."
f"Curation folder for article {article_id} version {version['version']} not found."
+ " Article version will be skipped.",
True)
return None
Expand Down

0 comments on commit 872ae26

Please sign in to comment.