Skip to content

Conversation

@jcscottiii
Copy link
Collaborator

Enables the Event Producer to fetch the previous state and coordinate execution via distributed locking.

Changes:

  • Spanner: Added GetLatestSavedSearchNotificationEvent to fetch the last known state for a search/frequency pair.
  • Schema: Added index SavedSearchNotificationEvents_BySearchAndSnapshotType to optimize state lookups.
  • Producer: Updated ProcessSearch to acquire/release locks (currently using triggerID) and fetch the previous state before diffing.
  • Refactor: Exported DefaultBrowsers in backendtypes for shared use between the API server and worker adapters

@jcscottiii jcscottiii requested a review from jrobbins December 26, 2025 22:44
@jcscottiii jcscottiii force-pushed the jcscottiii/producer-wiring-pt4 branch from 6ca08b5 to d1d7443 Compare December 26, 2025 22:53
@jcscottiii jcscottiii force-pushed the jcscottiii/producer-wiring-pt3 branch from b9aa221 to c2deba9 Compare December 28, 2025 22:24
@jcscottiii jcscottiii force-pushed the jcscottiii/producer-wiring-pt4 branch from d1d7443 to 41bbe4f Compare December 28, 2025 22:25
@jcscottiii jcscottiii force-pushed the jcscottiii/producer-wiring-pt3 branch from c2deba9 to 94d4fc7 Compare December 29, 2025 00:43
Base automatically changed from jcscottiii/producer-wiring-pt3 to main December 29, 2025 01:38
Enables the Event Producer to fetch the previous state and coordinate
execution via distributed locking.

Changes:
- **Spanner**: Added `GetLatestSavedSearchNotificationEvent` to fetch the
  last known state for a search/frequency pair.
- **Schema**: Added index `SavedSearchNotificationEvents_BySearchAndSnapshotType`
  to optimize state lookups.
- **Producer**: Updated `ProcessSearch` to acquire/release locks (currently using
  triggerID) and fetch the previous state before diffing.
- **Refactor**: Exported `DefaultBrowsers` in `backendtypes` for shared use
  between the API server and worker adapters
@jcscottiii jcscottiii force-pushed the jcscottiii/producer-wiring-pt4 branch from 41bbe4f to fdf7972 Compare December 29, 2025 03:25
@jcscottiii jcscottiii added this pull request to the merge queue Jan 1, 2026
Merged via the queue into main with commit 5ddbe2b Jan 1, 2026
7 checks passed
@jcscottiii jcscottiii deleted the jcscottiii/producer-wiring-pt4 branch January 1, 2026 21:18
@jcscottiii jcscottiii linked an issue Jan 5, 2026 that may be closed by this pull request
@jstenback jstenback mentioned this pull request Jan 15, 2026
@DanielRyanSmith DanielRyanSmith mentioned this pull request Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Worker] Implement Core EventProducerWorker for Event Generation

3 participants