Skip to content

Missing error queue to notification api #757

@JanBrek

Description

@JanBrek

Product versie / Product version

3.5.0

Omschrijf het probleem / Describe the bug

Yesterday a production issue due to notification api being offline (Due to another bug with opennotificatie redis).
This logically causes notifications not being sent to the notification api.
The problem was that there were error logs, but they just mentioned a failed attempt, but nothing on the actual data that failed to send. Hence we could not find out which notifications were missed. Luckily with the help of Sentry we were able to figure this out and recover.

TODO:

  • implement storing of outgoing notifications and delivery attempts/response(s) in db in notifications-api-common (similar to Open Notificaties)
    • if a notification succeeds, remove the persisted notification (this way only failed notification are persisted)
  • implement admin interface to see these notifications and do retries (for single notifications or in bulk, similar to Open Notificaties
  • add a task/command to clean up old notifications in the database, with a configurable amount of retention days (default 60)

Upgrade notifications-api-common in these components:

  • Open Zaak
  • Open Object
  • Open Klant
  • Open Product
  • Open VTB

Stappen om te reproduceren / Steps to reproduce

  1. Bring ON down
  2. Add a new object to the api
  3. Wait until failure

Verwacht gedrag / Expected behavior

We need at least more/better information in the logs, but I prefer to have an error queue which I can view in the admin UI of objecten and start a retry for.

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

Status
Implemented

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions