Scheduled workflow runs not being created (most slots missing, others delayed 1-3+ hours); workflow_dispatch works #209885
Replies: 4 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
This matches documented behavior rather than a repo-side misconfiguration. GitHub's docs for the schedule event say it can be delayed during periods of high load, and if the load is high enough, some queued jobs may be dropped. There is no guarantee that every cron slot produces a run, and instant workflow_dispatch runs alongside lagging schedule runs is the usual signature of that. Two things worth noting from your setup:
If you need firmer timing than the schedule trigger offers, the common workaround is an external scheduler elsewhere that calls workflow_dispatch through the API. Within GitHub alone, off-peak minutes, which you already use, are the only mitigation GitHub documents. |
|
There is no public endpoint that lets a repository owner force a schedule run or inspect a hidden schedule-registration queue. The useful checks are the ones you have already started: confirm the workflow is enabled, present on the default branch, and query workflow runs with |
|
The fact that I'd investigate these areas separately:
For a diagnostic API query, filtering workflow runs by the I'd also keep a simple record of expected schedule times and observed run creation times. That makes it easier to demonstrate whether runs are consistently delayed or entirely absent. Because the report includes multiple missing runs and substantial delays, I'd avoid assuming that a cron expression change will fix it without further evidence. If the configuration is valid and the problem persists across multiple time slots, the collected run IDs and timestamps would be useful evidence for GitHub to investigate. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Schedule & Cron Jobs
Discussion Details
Summary
My scheduled workflow is registered and has fired a few times, but most scheduled slots produce no run at all. The few runs that do appear are delayed by roughly 35 minutes to 3+ hours. Manual
workflow_dispatchruns work normally.Setup
main(only branch).github/workflows/psi-monitor.yml(onmain, unchanged)ubuntu-latestIntended slots: 09:07, 12:07, 15:07, 18:07, 21:07 IST (03:37, 06:37, 09:37, 12:37, 15:37 UTC).
Earlier I used a UTC-only cron without
timezone(e.g."30 7 * * *") and saw the same behavior, so I don't think thetimezonefield is the cause.Evidence
Output of
GET /repos/<OWNER>/<REPO>/actions/workflows/psi-monitor.yml/runs?event=schedule&per_page=50:queuedfor about 1.5 days.workflow_dispatchstart and complete normally (about 1-2 min).Already checked
if:condition restricting events toworkflow_dispatchQuestions
Happy to share more details if helpful.
All reactions