mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 01:37:31 +00:00
fix(eventstore): cache instances (#6501)
* fix(eventstore): cache instances
* fix: consider succeeded once during instance ids query
* fix(eventstore): return correct instances
(cherry picked from commit 0f06e84f40
)
This commit is contained in:
@@ -279,7 +279,7 @@ func (h *ProjectionHandler) schedule(ctx context.Context) {
|
||||
// This ensures that only instances with recent events on the handler are projected
|
||||
query = query.CreationDateAfter(h.nowFunc().Add(-1 * h.handleActiveInstances))
|
||||
}
|
||||
ids, err := h.Eventstore.InstanceIDs(ctx, query.Builder())
|
||||
ids, err := h.Eventstore.InstanceIDs(ctx, h.requeueAfter, !succeededOnce, query.Builder())
|
||||
if err != nil {
|
||||
logging.WithFields("projection", h.ProjectionName).WithError(err).Error("instance ids")
|
||||
h.triggerProjection.Reset(h.requeueAfter)
|
||||
|
Reference in New Issue
Block a user