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:
parent
2455f18a8c
commit
3dde0142d2
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue