PRX / publish.prx.org

Dovetail podcast CMS frontend
https://publish.prx.org
GNU Affero General Public License v3.0
2 stars 2 forks source link

Reset audio file status when retrying #451

Open cavis opened 7 years ago

cavis commented 7 years ago

When retrying the audio lambda, we should PUT {status: "uploaded"} back to CMS to kick it off, rather than an empty object. Both kick off the lambda, but reseting the status to uploaded makes sure Publish keeps pinging for status changes until the lambda completes.

cavis commented 7 years ago

Tried this briefly, while working on something else.

More complex than I initially thought. Even if you PUT the status: "uploaded", CMS doesn't actually listen to that. Instead, it updates timestamps (as with any PUT request), fires off SNS, and waits for the lambda-sqs-callback to change the status/statusMessage.