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

Fix: no delivery files are expected if there is no delivery #789

Merged
merged 3 commits into from
Aug 18, 2023

Conversation

svevang
Copy link
Member

@svevang svevang commented Aug 17, 2023

Fixes a case where an episode was uploaded to the apple system, but the wait for linked asset state timed out.

Upon manual retry, the episode was marked for re-upload by deleting the delivery/delivery_files on the episode (PodcastContainer#reset_source_file_metadata). But since the creation of delivery files changed with 520f2c9 (now based on Episode#needs_delivery?), the guard in the Apple::PodcastDeliveryFile class was blowing up -- expecting a delivery to be inplace.

This PR removes the assumption that a Apple::PodcastDelivery has to be in place in the delivery file sync routine. If the file is in the container, there is no need to redeliver -- in this case the episode simply needed to be marked as published.

Copy link
Member

@cavis cavis left a comment

Choose a reason for hiding this comment

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

👍 looks good to me!

@svevang svevang merged commit b5b410b into main Aug 18, 2023
1 check passed
@svevang svevang deleted the fix-no-delivery-files-if-no-delivery branch August 18, 2023 14:49
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.

2 participants