PRX / feeder.prx.org

Dovetail podcast content management system
https://podcasts.dovetail.prx.org
GNU Affero General Public License v3.0
5 stars 0 forks source link

Apple status "complete" before episode publishes #995

Closed cavis closed 3 months ago

cavis commented 4 months ago

Doing some QA-ing last week in staging, I noticed that the "complete" badge was showing up 15+ minutes before the episode successfully pushed to Apple (looking at the publishing pipeline state).

svevang commented 4 months ago

Take a look here: https://github.com/PRX/feeder.prx.org/blob/main/app/models/apple/episode.rb#L499-L511

The derived statues used here partially come from the delivery status model. Though the apple delivery status model solely deals with the "upload and moving of files" aspect. The top level concerns dealing with "is this episode synced?" are all on the episode model. These methods don't hit the APIs