You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(weekly-reports): dupe on report timestamp instead of batch (#76031)
- It has been observed that a portion of our duplicate weekly emails
come from the schedule celery task being killed and restarted, which
will cause duplicates for any orgs that were queued in the first batch.
- this also generates a new batch_id, which causes our de-duplication
logic to not work, as batch_id is included in the redis key that we use.
- [x] This PR modifies our logic so that the dupe checker instead uses
the timestamp for which the weekly report is generated on. this should
be a safe way to ensure no duplicates occur across batches.
- [x] Updates the test.
0 commit comments