No assurance on scheduled jobs? #27130
-
This is a re-post, as I just realized I started the thread in the wrong forum. (And, don’t see any functionality to move it.) Is there no assurance on execution of scheduled jobs? I mean if they aren’t executed with in n time (window) of their scheduled time are they abandon? Could there have been some sort of GitHub Actions resource contention issue that caused them not to run/fire and then the window was passed? Was there an infrastructure issue a few days ago that prevented scheduled jobs from running? I’m asking because I don’t see any evidence of this scheduled job being run on the 18th. Workflow: https://github.com/zapbot/zap-mgmt-scripts/blob/742d9a8c1170634ff5d135a38848f69f129a69a7/.github/workflows/record-stats.yml, as you can see it hasn’t been changed in 22 days. The schedule is set for midnight:
But there’s no “3 days ago” run at all: |
Beta Was this translation helpful? Give feedback.
Replies: 4 suggested answers
-
Many times, there is a delay when triggering the scheduled workflow. In your case, you can try to use the “Get a workflow run” API to get the details of runs #56 and #57 respectively. From the response of the API, you can see when the runs were triggered (created_at).
|
Beta Was this translation helpful? Give feedback.
-
Thanks @brightran I’m okay with delays, I think I’ve seen that regularly, but it totally being skipped caught me off guard. Does anyone know if there are any plans to increase assurance that things run, or to implement some sort of notification(s) if they don’t? Edit: Just in-case anyone come across this later. The “run id” for the API mentioned above isn’t just 56 or 57 it’s the one you see in the URL when viewing the run in the GitHub web UI. Edit2: It seems 56 was created on the 17th ( |
Beta Was this translation helpful? Give feedback.
-
Looks like, the scheduled workflow indeed was not triggered on 18th. |
Beta Was this translation helpful? Give feedback.
-
I wrote a quick blog post with some additional information about this issue: https://upptime.js.org/blog/2021/01/22/github-actions-schedule-not-working. |
Beta Was this translation helpful? Give feedback.
@kingthorin ,
Looks like, the scheduled workflow indeed was not triggered on 18th.
I noticed a GitHub incident reported on 17th (see here). Maybe the issue is related to this incident.