zitadel/internal/notification
Livio Spring 7f0378636b
fix(notifications): improve error handling (#8994)
# Which Problems Are Solved

While running the latest RC / main, we noticed some errors including
context timeouts and rollback issues.

# How the Problems Are Solved

- The transaction context is passed and used for any event being written
and for handling savepoints to be able to handle context timeouts.
- The user projection is not triggered anymore. This will reduce
unnecessary load and potential timeouts if lot of workers are running.
In case a user would not be projected yet, the request event will log an
error and then be skipped / retried on the next run.
- Additionally, the context is checked if being closed after each event
process.
- `latestRetries` now correctly only returns the latest retry events to
be processed
- Default values for notifications have been changed to run workers less
often, more retry delay, but less transaction duration.

# Additional Changes

None

# Additional Context

relates to #8931

---------

Co-authored-by: Tim Möhlmann <tim+github@zitadel.com>
2024-12-04 20:17:49 +00:00
..
channels feat(notification): use event worker pool (#8962) 2024-11-27 15:01:17 +00:00
handlers fix(notifications): improve error handling (#8994) 2024-12-04 20:17:49 +00:00
messages feat(OIDC): add back channel logout (#8837) 2024-10-31 15:57:17 +01:00
senders feat(OIDC): add back channel logout (#8837) 2024-10-31 15:57:17 +01:00
static feat(i18n): add korean language support (#8879) 2024-12-02 13:11:31 +00:00
statik chore: initial version of a devcontainer (#6352) 2023-08-15 10:49:05 +02:00
templates feat: add http as sms provider (#8540) 2024-09-06 13:11:36 +00:00
types feat(notification): use event worker pool (#8962) 2024-11-27 15:01:17 +00:00
channels.go feat(OIDC): add back channel logout (#8837) 2024-10-31 15:57:17 +01:00
projections.go feat(notification): use event worker pool (#8962) 2024-11-27 15:01:17 +00:00