Skip to main content

Notification HAI Requests

Summary

This worker subscribes to the notifications-notification-hai-requested Pub/Sub topic and fans out the requests to the appropriate send channels.

Service TypeWorker
Pub/Sub Topicnotifications-notification-hai-requested
Pub/Sub Subscriptionnotifications-notification-hai-requested-notification-hai-requests-worker

Testing

Start the service and worker by running:

./scripts/start-all.sh

Test the worker by calling publish-test-event in a new terminal:

GCP_PROJECT_ID=local PUBSUB_EMULATOR_HOST=0.0.0.0:3032 go run workers/dep/notification-hai-requests/main.go dep pte --name approve_event --version 1

Monitoring

Resources