Skip to main content

Process Dead Letter Queue

Dashboards

Batch Requests Worker

  1. Get a pod name from the GCP console
  2. Log onto the pod using seira
seira production notifications pods connect --pod=<pod-name

example:
seira production notifications pods connect --pod=notification-batch-requests-worker-7b9f5dc5bb-hg72n
  1. Start the application in dlq mode

Batch Requests Worker

/helper/bin/secrets-init --provider=google /app/notification-batch-requests-worker dep dlq p -t notifications-notification-batch-requested --disable-dlq=false --timer-duration 10 --subscription-num-go-routines 1 --subscription-max-messages 1

Low Priority Requests Worker

/helper/bin/secrets-init --provider=google /app/notification-lp-requests-worker dep dlq p -t notifications-notification-low-priority-requested --disable-dlq=false --timer-duration 10 --subscription-num-go-routines 1 --subscription-max-messages 1

HAI Requests Worker

/helper/bin/secrets-init --provider=google /app/notification-hai-requests-worker dep dlq p -t notifications-notification-hai-requested --disable-dlq=false --timer-duration 10 --subscription-num-go-routines 1 --subscription-max-messages 1

Offline Requests Worker

/helper/bin/secrets-init --provider=google /app/notification-offline-requests-worker dep dlq p -t notifications-notification-offline-requested --disable-dlq=false --timer-duration 10 --subscription-num-go-routines 1 --subscription-max-messages 1

DEP Monolith Inboxes

For things like the firebase and mailgun inboxes, you can follow log onto a pod:

$ seira production handshake pods connect --dedicated
$ gems/next_inbox/bin/next_inbox_consumer --subscription notifications-mailgun-low-priority-requested-notifications-dead-letter --handler Next::Notifications::Handlers --module Next::Notifications --client_max_messages "50" --no-ledger

you can "scale" this if needed by running on multiple tabs