docs(audiences): clarify first Salesforce export does not run immediately#1618
Merged
Merged
Conversation
Contributor
george-dilthey
marked this pull request as ready for review
July 17, 2026 18:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Clarified in two places in
docs/audiences.mdthat the first Audiences→Salesforce export does not run immediately after enabling the Export sync toggle — it fires at the workspace's next scheduled export time, which may be up to 24 hours away.Changed in two locations:
Before (both locations): "the first export fires at your workspace's next scheduled export time — this may take up to 24 hours"
After (both locations): "the first export does not run immediately — it fires at your workspace's next scheduled export time, which may be up to 24 hours away"
Why
Intercom conversation #215475130065193 (Saviynt, Enterprise): Gabriel Griffith had configured Salesforce Account field mappings with "Always write" rules but wasn't seeing data sync. Human agent Peter Johnston explained: (1) the Export sync toggle must be enabled as a master switch, and (2) the first sync does NOT happen immediately — it's queued for the next scheduled 24-hour window.
The first point was already well-covered in the doc (including the existing FAQ entry that exactly matched the customer's question). The second point was present but ambiguously worded — "may take up to 24 hours" doesn't clearly exclude the possibility of near-immediate syncing (e.g., "maybe it syncs in 5 minutes"). The customer explicitly followed up: "should this happen immediately or is it queued up for the 24 hour window?" — and the agent answered: "the export gets triggered to occur within the next 24 hour window rather than immediately." This PR adds the explicit "does not run immediately" language that directly answers that follow-up question.
Source link(s)
services/audiences/src/materialization/services/export-handler.ts:3470— toggle check fires before field-level rules are evaluatedservices/scheduler/src/bull/queues/audience-export-queue.ts—scheduleAudienceExportJobusesimmediate: false; each workspace gets a stable daily cron slot (hash-derived). Comment in code: "Export runs on a fixed 24h cycle at the workspace's assigned slot. Enabling the toggle does not trigger an out-of-cycle run."#team-audiences, 2026-07-17): "it queues it for the next window. for every export, we assign an arbitrary time during the day."Uncertainties
None. Both changes confirmed PASS by verifier with code + Slack evidence.
Related observations
Closes DOC-1225