run at 10am

This commit is contained in:
Karl 2025-07-18 18:03:43 +01:00
parent 211afa3966
commit 14490bd7d2

View File

@ -22,7 +22,7 @@ def create_app():
# Schedule the daily account check
scheduler = BackgroundScheduler()
# Pass the app instance to the job
scheduler.add_job(func=lambda: send_expiry_notifications(app), trigger="interval", days=1)
scheduler.add_job(func=lambda: send_expiry_notifications(app), trigger="cron", hour=10, minute=0)
scheduler.start()
# Register blueprints