Conversation
bdf828a to
e1f5acd
Compare
107cf0d to
196de77
Compare
stephencdaly
left a comment
There was a problem hiding this comment.
Changes all look good to me.
I think we should also update submissions:redeliver_daily_batches_by_date to be able to also re-deliver weekly batches. Currently it looks for submissions created between 2 timestamps and gets their corresponding deliveries. But I wonder whether it's more useful to get deliveries created between 2 timestamps to account for weekly?
And either re-deliver all daily or weekly batch deliveries found between the two timestamps, or take an argument to specify "daily" or "weekly"?
I'm not even sure we really need this task, it's a bit confusing at this point. We would already have redelivered them if we'd used the I can update the |
I think the intention is to re-deliver deliveries that didn't bounce in the case that they were lost or malformed. I think we've used it before when we sent out emails without CSV attachments and needed to resend them. So agree it shouldn't be needed often but might be sometimes. It might be worth updating the description to make clear it shouldn't be used for bounces? |
b6a55dd to
934278f
Compare
I've updated it so it will catch all non-immediate deliveries between the time range for the form, and the description makes it clear that it's re-delivering batch deliveries. |
The redelivery task now handles all non-immediate deliveries for a given form and time range, and looks for deliveries created between the time range, rather than submissions within the time range that have a corresponding batch delivery.
934278f to
07beb61
Compare
|
|
🎉 A review copy of this PR has been deployed! You can reach it at: https://pr-1981.submit.review.forms.service.gov.uk/ It may take 5 minutes or so for the application to be fully deployed and working. If it still isn't ready For the sign in details and more information, see the review apps wiki page. |



What problem does this pull request solve?
https://trello.com/c/Z4ZkhRch/2884-update-ses-delivery-and-bounce-notifications-to-handle-weekly-deliveries
Makes sure the bounces and complaints job can handle a
weeklydelivery scheduleAccounts for weekly delivery batches in the rake tasks that deal with bounced deliveries.
Things to consider when reviewing