fix scheduler orario start, immagine parcheggio, added more logs function
This commit is contained in:
2
main.py
2
main.py
@@ -24,6 +24,7 @@ from app.routes.parking import router as parking_router
|
||||
from app.routes.parking import router as parking_router
|
||||
from database.connection import init_db, get_db_session
|
||||
from services.notifications import run_scheduled_notifications
|
||||
from services.parking import process_daily_allocations
|
||||
import asyncio
|
||||
|
||||
# Rate limiter setup
|
||||
@@ -37,6 +38,7 @@ async def scheduler_task():
|
||||
try:
|
||||
with get_db_session() as db:
|
||||
run_scheduled_notifications(db)
|
||||
process_daily_allocations(db)
|
||||
except Exception as e:
|
||||
config.logger.error(f"Scheduler error: {e}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user