fix: recommendation worker now respects thesis-rewriter active=false toggle

This commit is contained in:
Celes Renata
2026-04-17 19:22:31 +00:00
parent d8f1b615c8
commit 7736554988
+3
View File
@@ -90,6 +90,9 @@ async def main() -> None:
if ollama_config is None or new_config.model != ollama_config.model:
logger.info("Thesis rewriter config updated: model=%s", resolved.model_name)
ollama_config = new_config
elif ollama_config is not None:
logger.info("Thesis rewriter disabled — skipping LLM thesis rewrite")
ollama_config = None
except Exception:
logger.warning("Failed to refresh thesis-rewriter config", exc_info=True)