Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add option to resume incomplete exports #68

Open
wants to merge 1 commit into
base: 7.x
Choose a base branch
from

Conversation

ctgraham
Copy link

JIRA Ticket: n/a

What does this Pull Request do?

By default, the create-islandora-bag command will overwrite existing bags with the same name. An option --resume is available which will instead accept the existing bags as-is, and resume processing with the next incomplete bag.

What's new?

Drush option --resume examines existing bags, and if present emits a message before proceeding to the next bag.

How should this be tested?

  • Cancel a collection export of multiple objects mid-way through.
  • Re-run the command with the --resume option, and observe that completed bags are untouched, and missing bags are added.
  • Re-run the command without the --resume option, and observe that all bags are re-created.

Additional Notes:

This does move a late set of the $serialized_bag_path and $compression_type to an early statement for the sake of checking for the existence of the serialized output.

Interested parties

Probably no one, just documenting our change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant