Skip to content

Commit

Permalink
Add skip of old ES schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Dec 21, 2023
1 parent 6f5ce24 commit aef8f7c
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ public ElasticQueuePusher()
using (var redis = RedisAccess.GetConnection())
{
var schemas = redis.GetActiveSchemas();

foreach (var schema in schemas)
processors.Add(new ElasticQueueProcessor(schema));
{
// Old schemas that don't have the prefix in the active list.
// We don't want to push to them.
if (schema.Length <= 2)
processors.Add(new ElasticQueueProcessor(schema));
}
}
}

Expand Down

0 comments on commit aef8f7c

Please sign in to comment.