Added scheduler
This commit is contained in:
parent
7291faede5
commit
4892916e16
3
modules/scheduler.py
Normal file
3
modules/scheduler.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from apscheduler.schedulers.asyncio import AsyncIOScheduler
|
||||||
|
|
||||||
|
scheduler = AsyncIOScheduler()
|
@ -1,6 +1,7 @@
|
|||||||
from os import makedirs, sep
|
from os import makedirs, sep
|
||||||
from modules.app import app
|
from modules.app import app
|
||||||
from modules.utils import *
|
from modules.utils import *
|
||||||
|
from modules.scheduler import scheduler
|
||||||
from modules.extensions_loader import dynamic_import_from_src
|
from modules.extensions_loader import dynamic_import_from_src
|
||||||
from fastapi.responses import FileResponse
|
from fastapi.responses import FileResponse
|
||||||
|
|
||||||
@ -14,4 +15,6 @@ async def favicon():
|
|||||||
|
|
||||||
#=================================================================================
|
#=================================================================================
|
||||||
dynamic_import_from_src("extensions", star_import = True)
|
dynamic_import_from_src("extensions", star_import = True)
|
||||||
#=================================================================================
|
#=================================================================================
|
||||||
|
|
||||||
|
scheduler.start()
|
Loading…
Reference in New Issue
Block a user