Evita buscar PPG no job principal para acelerar carga

This commit is contained in:
Frederico Castro
2025-12-10 17:33:42 -03:00
parent 8d36a71df8
commit c4e92584f8

View File

@@ -22,7 +22,8 @@ class ProcessarRankingJob:
self.oracle_remote_client = oracle_remote_client self.oracle_remote_client = oracle_remote_client
self.oracle_local_client = oracle_local_client self.oracle_local_client = oracle_local_client
self.ranking_repo = ranking_repo self.ranking_repo = ranking_repo
self.consultor_repo = ConsultorRepositoryImpl(es_client, oracle_remote_client) # Para acelerar a carga principal, não buscamos PPG aqui (Componente B vem depois)
self.consultor_repo = ConsultorRepositoryImpl(es_client, oracle_client=None)
self.calculador = CalculadorPontuacao() self.calculador = CalculadorPontuacao()
async def executar(self, limpar_antes: bool = True) -> Dict[str, Any]: async def executar(self, limpar_antes: bool = True) -> Dict[str, Any]: