Fix APScheduler compatibility issue

- Remove next_run_time attribute access (not available in newer APScheduler versions)
- Use simple logging instead for job confirmation
- Fixes AttributeError on service startup
This commit is contained in:
Dave Porter 2026-01-07 13:04:30 -05:00
parent 2455f18a8c
commit 3dde0142d2

View file

@ -94,10 +94,9 @@ class VEO3Scheduler:
replace_existing=True
)
# Get next run time
next_run = self.scheduler.get_jobs()[0].next_run_time
# Log scheduling confirmation
logger.info(f"Scheduled to run daily at 7:00 PM EST")
logger.info(f"Next scheduled run: {next_run}")
logger.info("Job scheduled successfully")
# Optional: Run immediately on startup for testing
# Uncomment the line below to run a report when the service starts