fix: allow disabling projections for specific instances (#10421)

# Which Problems Are Solved

The current handling of event subscriptions for actions is bad, esp. on
instances with a lot of events
(https://github.com/zitadel/zitadel/issues/9832#issuecomment-2866236414).
This led to severe problems on zitadel.cloud for such instances.

# How the Problems Are Solved

As a workaround until the handling can be improved, we introduce an
option for projections to be disabled completely for specific instances:
`SkipInstanceIDs`

# Additional Changes

None

# Additional Context

- relates to https://github.com/zitadel/zitadel/issues/9832

(cherry picked from commit 67efddcbc6)
This commit is contained in:
Livio Spring
2025-08-08 15:42:14 +02:00
parent 0eb1c4306a
commit c4fb0d2e62
3 changed files with 10 additions and 1 deletions

View File

@@ -271,6 +271,7 @@ func applyCustomConfig(config handler.Config, customConfig CustomConfig) handler
if customConfig.TransactionDuration != nil {
config.TransactionDuration = *customConfig.TransactionDuration
}
config.SkipInstanceIDs = append(config.SkipInstanceIDs, customConfig.SkipInstanceIDs...)
return config
}