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 modules.app import app
|
||||
from modules.utils import *
|
||||
from modules.scheduler import scheduler
|
||||
from modules.extensions_loader import dynamic_import_from_src
|
||||
from fastapi.responses import FileResponse
|
||||
|
||||
@ -15,3 +16,5 @@ async def favicon():
|
||||
#=================================================================================
|
||||
dynamic_import_from_src("extensions", star_import = True)
|
||||
#=================================================================================
|
||||
|
||||
scheduler.start()
|
Loading…
Reference in New Issue
Block a user