mozilla-services / push-dev-dashboard

Developer dashboard for the Mozilla web push service
https://dev-dashboard.deis.dev.mozaws.net/
Mozilla Public License 2.0
7 stars 6 forks source link

When Push Messages API returns 404, set all apps' status from 'recording' to 'valid' #179

Closed groovecoder closed 8 years ago

groovecoder commented 8 years ago

When the Push Messages API returns a 404, it means the Redis data was lost.

To be safe and make sure we're recording all apps in the dashboard, we need to re-POST all apps' public keys to restart their recording.

So, when the push messages API returns 404, we should set all apps' vapid_key_status from 'recording' to 'valid' to trigger their POSTs next time the start_recording_push_apps command is run.