File tree Expand file tree Collapse file tree
services/libs/data-access-layer/src/mailinglist Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,10 +70,13 @@ export async function findMailingListsOwnedByOtherIntegration(
7070/**
7171 * Upsert mailing lists (public-inbox/lore) for a segment/integration and
7272 * seed their processing state so the mailing_list_integration worker picks
73- * them up. Re-running with the same sourceUrl re-points the list at the
74- * given segment/integration without resetting its processing progress. Any
75- * of this integration's lists no longer present in `lists` are soft-deleted,
76- * so the worker (which filters on "deletedAt" IS NULL) stops polling them.
73+ * them up. Re-running with the same sourceUrl for a still-active list
74+ * re-points it at the given segment/integration without resetting its
75+ * processing progress; reactivating a previously soft-deleted sourceUrl
76+ * resets its processing state instead, so the new owner starts fresh rather
77+ * than resuming the old owner's checkpoint. Any of this integration's lists
78+ * no longer present in `lists` are soft-deleted, so the worker (which
79+ * filters on "deletedAt" IS NULL) stops polling them.
7780 * @param qx - Query executor (should be transactional)
7881 * @param segmentId - Segment the lists belong to
7982 * @param integrationId - Integration these lists are onboarded under
You can’t perform that action at this time.
0 commit comments