SurfSense/surfsense_backend/app/tasks
CREDO23 40300d300a refactor(chat): add streaming/flows/shared/premium_quota.py
Centralizes the premium-credits lifecycle for chat turns:

* needs_premium_quota: gate check (premium user + non-fallback config).
* PremiumReservation: dataclass capturing reservation state + token totals.
* reserve_premium / finalize_premium / release_premium: idempotent
  reservation, commit, and rollback used by the orchestrators.

Add-only; legacy stream_new_chat.py keeps its inline quota handling
until cutover.
2026-05-25 21:49:14 +02:00
..
celery_tasks feat(connectors): add retry and auth telemetry events 2026-05-22 17:50:02 +05:30
chat refactor(chat): add streaming/flows/shared/premium_quota.py 2026-05-25 21:49:14 +02:00
connector_indexers perf(indexers): offload sync embed_text to thread across background workers 2026-05-20 10:09:38 +02:00
document_processors perf(indexers): offload sync embed_text to thread across background workers 2026-05-20 10:09:38 +02:00
__init__.py feat: SurfSense v0.0.6 init 2025-03-14 18:53:14 -07:00
composio_indexer.py chore: ran frontend and backend linting 2026-02-01 22:54:25 +05:30
surfsense_docs_indexer.py chore: ran linting 2026-03-17 04:40:46 +05:30