Closed okaycj closed 3 months ago
Issues
1 New issue
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
This pull request was deployed and Sentry observed the following issues:
studies.tasks.send_announcement_emails
View IssueDid you find this useful? React with a 👍 or 👎
In case anyone else sees the Sentry error above - I think this was caused by doing a production release while the send_announcement_emails
task was still running, hence the "closed the connection unexpectedly" error. So I think this is nothing to worry about. We will know for sure tomorrow after the announcement emails task has had the chance to run again.
Summary
Antidotally, the participation eligibility function was running slowly. This PR combines some queries within this function so that there are fewer calls to the database.