Skip to content

Add rake task to inspect a submission's deliveries - #2457

Merged
theseanything merged 1 commit into
mainfrom
add-inspect-delivery-status-task
Oct 27, 2026
Merged

theseanything merged 1 commit into
mainfrom
add-inspect-delivery-status-task

Conversation

@theseanything

@theseanything theseanything commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

What problem does this pull request solve?

Trello card: N/A

When a submission doesn't arrive, finding out why means piecing together the delivery record, the SES bounce details and any failed Solid Queue jobs by hand in a Rails console. This adds a rake task that shows all of that for a submission reference:

bin/rails "submissions:inspect_submission_deliveries[S37296TN]"

For each delivery of the submission, it prints:

  • the delivery method, schedule, status, SES message ID and timestamps
  • the failure reason and, for bounces, the bounce type and each bounced recipient's SMTP status and diagnostic code
  • the error from any failed delivery job still in Solid Queue

Adding this to help us with support requests.

When a submission fails to arrive, support currently has to piece
together the delivery record, SES bounce details and Solid Queue failed
jobs by hand. Solid Queue lives in a separate database, so failed jobs
are matched on the delivery's GlobalID in the serialized arguments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@theseanything
theseanything marked this pull request as ready for review October 27, 2026 13:26
@theseanything
theseanything requested a review from a team October 27, 2026 13:26
@github-actions

Copy link
Copy Markdown
Contributor

🎉 A review copy of this PR has been deployed! It is made of up two components

  1. A review copy of forms-runner
  2. A production copy of forms-admin

It may take 5 minutes or so for the application to be fully deployed and working. If it still isn't ready
after 5 minutes, there may be something wrong with the ECS task. You will need to go to the integration AWS account
to debug, or otherwise ask an infrastructure person.

For the sign in details and more information, see the review apps wiki page.

@theseanything
theseanything added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit d92055a Oct 27, 2026
13 of 14 checks passed
@theseanything
theseanything deleted the add-inspect-delivery-status-task branch October 27, 2026 15:07
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