Skip to content

Commit caa9fc6

Browse files
committed
docs: clarify upsertMailingLists reactivation behavior (CM-1318)
Signed-off-by: Uroš Marolt <uros@marolt.me>
1 parent 05ac034 commit caa9fc6

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

  • services/libs/data-access-layer/src/mailinglist

services/libs/data-access-layer/src/mailinglist/index.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)