Skip to content

Conversation

@jcscottiii
Copy link
Collaborator

Implements the Pub/Sub subscriber adapter for the email worker and the Spanner adapter for managing notification channel state.

Changes:

  • Pub/Sub Adapter: Created EmailWorkerSubscriberAdapter to receive EmailJobEvent messages from Pub/Sub and route them to the email worker's message handler. Includes unit tests.
  • Spanner Adapter: Added EmailWorkerChannelStateManager to record notification channel success and failure events. Includes unit tests.
  • Event Types: Added a ToWorkerTypeJobFrequency method to the JobFrequency type in lib/event/emailjob/v1 to convert between the event type and the worker type.

Implements the Pub/Sub subscriber adapter for the email worker and the
Spanner adapter for managing notification channel state.

Changes:
- **Pub/Sub Adapter**: Created `EmailWorkerSubscriberAdapter` to
  receive `EmailJobEvent` messages from Pub/Sub and route them to the
  email worker's message handler. Includes unit tests.
- **Spanner Adapter**: Added `EmailWorkerChannelStateManager` to record
  notification channel success and failure events. Includes unit tests.
- **Event Types**: Added a `ToWorkerTypeJobFrequency` method to the
  `JobFrequency` type in `lib/event/emailjob/v1` to convert between the
  event type and the worker type.
@jcscottiii jcscottiii requested a review from jrobbins December 31, 2025 02:15
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.

1 participant