mirror of
https://github.com/DarrylNixon/CrowdTLS-server.git
synced 2024-09-22 18:19:43 -07:00
11 lines
300 B
Python
11 lines
300 B
Python
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
|