mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-29 16:12:06 -04:00
fix: email poller marks calendar extraction processed on LLM failure (#4622)
Move calendar processed-marker insert into the LLM success path (else branch). Previously, the INSERT ran even after a transient LLM failure, causing the poller to skip retrying calendar extraction on subsequent runs. Minimal change: only touches the try/except/else control flow in _auto_summarize_pass_single() — preserves existing formatting and line endings.
This commit is contained in:
@@ -694,7 +694,10 @@ async def _auto_summarize_pass_single(days_back: int = 1, account_id: str | None
|
|||||||
logger.warning(f"[cal-extract] JSON parse failed: {je} on raw={cal_extract[:200]!r}")
|
logger.warning(f"[cal-extract] JSON parse failed: {je} on raw={cal_extract[:200]!r}")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warning(f"[cal-extract] Meeting extraction LLM call failed for uid={uid}: {e}")
|
logger.warning(f"[cal-extract] Meeting extraction LLM call failed for uid={uid}: {e}")
|
||||||
# Record we processed this email so we don't re-LLM next run
|
else:
|
||||||
|
# Record we processed this email so we don't re-LLM next run.
|
||||||
|
# Only mark as processed on success ? transient LLM failures
|
||||||
|
# are retried on the next poll run (matches summary/reply pattern).
|
||||||
try:
|
try:
|
||||||
_cc = _sql3.connect(SCHEDULED_DB)
|
_cc = _sql3.connect(SCHEDULED_DB)
|
||||||
_cc.execute(
|
_cc.execute(
|
||||||
|
|||||||
Reference in New Issue
Block a user