mirror of
https://github.com/DarrylNixon/CrowdTLS-server.git
synced 2024-09-22 18:19:43 -07:00
Add Rocketry for analytics processing, add uvloop
This commit is contained in:
parent
1e33720feb
commit
9febdde025
7 changed files with 70 additions and 7 deletions
11
crowdtls/analytics/main.py
Normal file
11
crowdtls/analytics/main.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue