CrowdTLS-server/crowdtls/analytics/main.py

12 lines
300 B
Python
Raw Normal View History

from fastapi import Depends
from rocketry.conds import hourly
from sqlalchemy.ext.asyncio import AsyncSession
from crowdtls.db import get_session
from crowdtls.scheduler import app as schedule
@schedule.task(hourly)
async def find_anomalies(session: AsyncSession = Depends(get_session)):
pass