Scheduled GitHub Actions workflow runs only sporadically despite a 5-minute cron schedule #214082
Replies: 5 comments 1 reply
|
Short version: GitHub runs 1. Measure what actually ran gh run list --workflow <your-workflow>.yml --event schedule --limit 100 \
--json createdAt,status,conclusion \
--jq '.[] | "\(.createdAt) \(.status)/\(.conclusion)"'Compare 2. Things worth checking on your side
3. If you need it to run every 5 minutes reliably Don't depend on curl -X POST \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/OWNER/REPO/actions/workflows/<file>.yml/dispatches \
-d '{"ref":"main"}'Use a fine-grained token scoped to this repository, with Actions: Read and write. Add a 4. Support Yes. Gaps of several hours are far beyond the usual delay, and only GitHub can see the scheduler's side. Open a ticket with the repository name, the workflow file, and the run list from step 1 showing the missing slots. |
|
Short answer: you cannot distinguish "dropped" from "never triggered" from the repository side — GitHub does not record a schedule event that never produced a run. A dropped event leaves no trace. So the useful approach is to measure what did run and reason about the gaps. 1. Measure actual scheduled runs gh run list --workflow your-workflow.yml --event schedule --limit 100 \
--json createdAt,conclusion,event --jq '.[] | "\(.createdAt) \(.conclusion)"'That gives you the real cadence. If you see clusters followed by long gaps, that's the classic pattern of the scheduler dropping events under load. 2. Known constraints that explain long gaps
3. What you can actually do
4. On the "similar discussion" you found That author reported scheduled runs eventually started working on their own — consistent with a transient scheduler-side issue rather than a config problem. If your gaps started around Nov 25–26, that overlaps with the Actions incident, which is a plausible cause. Bottom line: treat |
|
One additional diagnostic that may help is to distinguish workflow run creation, execution start, and application-level completion. Rather than inspecting only gh run list --workflow YOUR_WORKFLOW.yml \
--event schedule --limit 100 \
--json databaseId,createdAt,startedAt,status,conclusion,urlThis helps separate three situations:
I encountered the importance of this distinction while developing an automated AI news publishing system using GitHub Actions. In one recent manual run, the workflow concluded successfully, but no new edition was published because external API requests timed out and the quality gates prevented publication. That is a different failure mode from your scheduling issue, but it illustrates why workflow status alone is insufficient for diagnosing automation reliability. In your case, the reported interval between 06:58 and 13:03 JST is 365 minutes, or 73 nominal five-minute intervals. I would include this observation, the expected UTC schedule, and the recorded run IDs in a support request. GitHub's documentation acknowledges that scheduled events can be delayed and that jobs may be dropped under sufficiently high load. However, the absence of a run record does not establish which internal failure occurred. Also, the documented 60-day inactivity rule applies specifically to public repositories. References:
I would contact GitHub Support with this evidence rather than assume that the cron expression itself is responsible. |
|
I’d leave If the five-minute cadence matters, move the clock, not the workflow. Your manual run confirms that POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches
Authorization: Bearer <fine-grained-PAT>
Content-Type: application/json
{"ref":"main"}Use the workflow filename (e.g. For this private repo: |
|
@ilmare1118-token, answering your two follow-up questions: 1. A free hosted cron that stores the PAT
2. Delay after a dispatch It's much smaller. A A simpler option for your case: the job takes 10 seconds and only checks MACD on 5-minute candles. You could run that check inside the Cloudflare Worker itself, by fetching the candles and computing MACD there. That way there's no Actions run and no PAT to store. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Schedule & Cron Jobs
Discussion Details
Hello GitHub Community,
I'm troubleshooting a scheduled workflow in a private repository. It is configured to run every 5 minutes, but scheduled runs have been appearing several hours apart.
Configuration:
mainworkflow_dispatchandschedule3-59/5 * * * *On November 26, 2026, the Actions history showed:
I have checked the default branch, Actions usage allowance, and GitHub Status. I understand that scheduled workflows can be delayed or dropped under load, but I would like to determine why the gaps are this long.
Is there a way to distinguish a delayed or dropped schedule event from one that was never triggered? Are there any repository-level diagnostics or settings I should check next?
Thank you.
I found a similar discussion titled “GitHub Actions scheduled workflows never trigger; manual runs succeed.” The author later reported that scheduled runs had started appearing, but roughly 6–8 hours apart despite a twice-hourly cron schedule. My workflow also has successful scheduled runs separated by several hours. I cannot confirm whether the two cases share the same cause. Would GitHub Support be the appropriate next step for investigating these gaps?
All reactions