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

Exceptions during export-process will result in incomplete export bei… #890

Merged
merged 1 commit into from
Sep 9, 2020

Conversation

ggainey
Copy link
Contributor

@ggainey ggainey commented Sep 6, 2020

…ng removed as cleanup.

fixes #7246

Please be sure you have read our documentation on creating PRs:
https://docs.pulpproject.org/contributing/pull-request-walkthrough.html

@pulpbot
Copy link
Member

pulpbot commented Sep 6, 2020

Attached issue: https://pulp.plan.io/issues/7246


In the event of any failure during an export, the process will clean up any partial
export-files that may have been generated. Export-files can be very large; this will
preserve available space in the export-directory.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

the_export.toc_info = {"file": output_file_info_path, "sha256": toc_hash}
finally:
# whatever may have happened, make sure we save the export
the_export.save()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

CHANGES/7246.misc Outdated Show resolved Hide resolved
Copy link
Contributor

@daviddavis daviddavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small comment. Other than that, LGTM.

@daviddavis daviddavis merged commit 986c3ca into pulp:master Sep 9, 2020
@ggainey ggainey deleted the 7246_cleanup_exp_fails branch April 27, 2021 13:22
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.

None yet

3 participants