chore: bumped version to 0.0.31

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-07-06 21:43:15 -07:00
parent 8df8565e0a
commit 1c9ab207ef
56 changed files with 520 additions and 190 deletions

View file

@ -209,7 +209,10 @@ async def _execute_async_run(
raise
except (SurfSenseError, HTTPException) as exc:
await _finalize_async(
run_id, status="error", error=str(exc), started=started,
run_id,
status="error",
error=str(exc),
started=started,
progress=reporter.coarse,
)
_publish_finished(run_id, "error", error=str(exc))

View file

@ -291,7 +291,9 @@ async def record_spill(
return None
async def _maybe_cleanup(session: AsyncSession, table: str, retention_days: int) -> None:
async def _maybe_cleanup(
session: AsyncSession, table: str, retention_days: int
) -> None:
"""Delete a bounded batch of expired rows on ~1% of inserts."""
if random.random() >= _CLEANUP_SAMPLE_RATE:
return