Skip to content

Rescue errors in Agencies and SPs report#9775

Merged
zachmargolis merged 2 commits intomainfrom
margolis-rescue-errors-in-agencies-and-sps-report
Dec 15, 2023
Merged

Rescue errors in Agencies and SPs report#9775
zachmargolis merged 2 commits intomainfrom
margolis-rescue-errors-in-agencies-and-sps-report

Conversation

@zachmargolis
Copy link
Contributor

🛠 Summary of changes

Handle query timeouts in Agencies and SPs report

- In #9744, we added more correct queries that took much longer.
  Even though we added the correct transaction_with_timeout wrapper,
  and even though the queries can succeed, the report still failed
  in prod.
- Adding this rescue allows the report to complete and send partial
  results still

changelog: Internal, Reporting, Add error handling for long-running queries
@zachmargolis zachmargolis requested a review from a team December 15, 2023 18:15
map(&:agency).
uniq
end
@active_agencies ||= Agreements::PartnerAccountStatus.find_by(name: 'active').
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change should be a no-op but I wanted to clean it up while I was already here

Copy link
Contributor

@ThatSpaceGuy ThatSpaceGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - thank you!

@zachmargolis zachmargolis merged commit 93547e0 into main Dec 15, 2023
@zachmargolis zachmargolis deleted the margolis-rescue-errors-in-agencies-and-sps-report branch December 15, 2023 19:36
@jmdembe jmdembe mentioned this pull request Dec 19, 2023
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