run at 10am
This commit is contained in:
parent
211afa3966
commit
14490bd7d2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user