Fix/valkey index ttl and reindex window#110
Merged
Merged
Conversation
…la vazia durante reindexação Problemas resolvidos: - scraper:jobs:index expirava em 72h, causando API vazia entre execuções semanais - jobTTL de 72h insuficiente para cobrir o intervalo de scraping de 7 dias - Del nos índices de keyword criava janela de vazio durante reindexação (até 40min) Mudanças em internal/jobstore/jobstore.go: - Remove Expire(indexKey) do pipeline por vaga — índice global agora é permanente - Aumenta jobTTL de 72h para 9 dias (> janela de 7 dias do filtro r604800) - IDs órfãos continuam sendo removidos organicamente pelo GetAll via SRem Mudanças em internal/pipeline/pipeline.go: - Substitui Del + reindexação direta por estratégia blue/green com chaves :next - Escreve novo índice em scraper:jobs:keyword:<kw>:next, depois RENAME atômico - RENAME garante que clientes nunca vejam chave vazia durante reindexação - Aumenta indexTTL de 72h para 9 dias, alinhado com jobTTL - Índice global (scraper:jobs:index) permanece sem TTL
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.