feat(mail): send service identity mail through a leased worker
This commit is contained in:
1 parent
204c6bae62
commit
d21fd49a42
58 files changed
+7577
-164
No files matched your search
@@ -36,6 +36,11 @@ func (store *DeliveryStatisticsStore) DeliveryStatistics(ctx context.Context) (o
|
||||
}
|
||||
statistics.Counts = append(statistics.Counts, count)
|
||||
earliest := row.EarliestPendingAttemptAt
|
||||
// Only service mail is picked up by a worker; a due notification
|
||||
// waits for TASK-462 and must not count as overdue.
|
||||
if !count.Kind.IsServiceMail() {
|
||||
continue
|
||||
}
|
||||
if earliest.Valid && (statistics.EarliestPendingAttemptAt.IsZero() || earliest.Time.Before(statistics.EarliestPendingAttemptAt)) {
|
||||
statistics.EarliestPendingAttemptAt = earliest.Time
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user