feat(mail): send service identity mail through a leased worker

This commit is contained in:
shira committed 2026-10-06 21:08:11 +03:00
1 parent 204c6bae62
commit d21fd49a42
58 files changed
+7577 -164

No files matched your search

@@ -21,8 +21,10 @@ type DeliveryStatistics struct {
// Counts has one entry per kind and status that has deliveries.
Counts []DeliveryStatusCount
// EarliestPendingAttemptAt is the earliest NextAttemptAt of a pending
// delivery, by the application clock that wrote it; zero without
// pending deliveries.
// service mail delivery (domain.ServiceMailKinds, the kinds a worker
// sends), by the application clock that wrote it; zero without one. A
// notification waits for its sending to be connected (TASK-462) and is
// not counted, so it never looks overdue.
EarliestPendingAttemptAt time.Time
}