[bug] Fix the problem where the job scheduler isn't scheduling the jobs #309
Labels
No labels
Kestra
bug
enhancement
someday
subtask
☁️ api
🎛️ infrastructure
🐞 sentry
📆 2025 Season
📝 pages
allpicks
📝 pages
picks
📝 pages
standings
🚀 performance
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
johnsturgeon/tgfp-web#309
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I noticed the error above, so I imagine that's the issue. After I made the 'schedule_jobs' method async, I had claude review it:
Yes, this is a legitimate fix! ✅
Your changes are correct. Here's why:
- async def schedule_jobs() → def schedule_jobs() in app/jobs/scheduler.py:144
- await schedule_jobs() → schedule_jobs() in app/main.py:70
- async def job_schedule_jobs() → def job_schedule_jobs() in app/routers/admin.py:53
synchronous eliminates the warning about an unawaited coroutine.
The fix properly aligns the function signature with its implementation. The RuntimeWarning was occurring because somewhere in the execution flow (likely in the threadpool executor used by APScheduler),
the async function was being called without being awaited.
Your changes look good to commit! 👍