Cron job doesn´t work as scheduled #145201
Replies: 2 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. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Hi @Pvillarroelo, Please refer to the following GitHub Docs page: Events that trigger workflows - Schedule The schedule event can be delayed during periods of high loads of GitHub Actions workflow runs. High load times include the start of every hour. If the load is sufficiently high enough, some queued jobs may be dropped. To decrease the chance of delay, schedule your workflow to run at a different time of the hour. I hope this helps. Kind Regards, |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Bug
Body
I have the following piece of a script to execute an .YML in actions, that is scheduled to run at 02:50 UTC every Thursday:
name: Automation class
on:
schedule:
- cron: '50 02 * * 4'
workflow_dispatch:
jobs:
reserva:
runs-on: self-hosted # Cambiado para correr en el runner autohospedado
However, all the actions I have scheduled have a big delay of about 35 minutes past midnight, even if I scheduled 3 hours before midnight. I don´t know what the reason is that the cron job doesn´t follow the scheduled time. Here is the last log of execution:
2024-11-21T03:45:13.6827908Z Current runner version: '2.320.0'
2024-11-21T03:45:13.6835511Z Runner name: 'runner-github'
2024-11-21T03:45:13.6836784Z Runner group name: 'Default'
2024-11-21T03:45:13.6837787Z Machine name: 'runner-github'
2024-11-21T03:45:13.6859062Z Testing runner upgrade compatibility
2024-11-21T03:45:13.9069248Z ##[group]GITHUB_TOKEN Permissions
2024-11-21T03:45:13.9527014Z Contents: read
2024-11-21T03:45:13.9528086Z Metadata: read
2024-11-21T03:45:13.9529149Z Packages: read
2024-11-21T03:45:13.9530976Z ##[endgroup]
2024-11-21T03:45:13.9536155Z Secret source: Actions
2024-11-21T03:45:13.9537317Z Prepare workflow directory
2024-11-21T03:45:14.2740625Z Prepare all required actions
2024-11-21T03:45:14.2917433Z Getting action download info
2024-11-21T03:45:14.7631743Z Download action repository 'actions/checkout@v2' (SHA:ee0669bd1cc54295c223e0bb666b733df41de1c5)
2024-11-21T03:45:15.9821193Z Download action repository 'actions/setup-python@v2' (SHA:e9aba2c848f5ebd159c070c61ea2c4e2b122355e)
2024-11-21T03:45:17.2722019Z Download action repository 'actions/cache@v3' (SHA:e12d46a63a90f2fae62d114769bbf2a179198b5c)
2024-11-21T03:45:18.9620148Z Complete job name: reserva
2024-11-21T03:45:19.1654454Z ##[group]Run actions/checkout@v2
2024-11-21T03:45:19.1655010Z with:
2024-11-21T03:45:19.1655471Z repository: Pvillarroelo/Reserva-clases
2024-11-21T03:45:19.1656464Z token: ***
2024-11-21T03:45:19.1656867Z ssh-strict: true
2024-11-21T03:45:19.1657338Z persist-credentials: true
2024-11-21T03:45:19.1657805Z clean: true
2024-11-21T03:45:19.1658198Z fetch-depth: 1
2024-11-21T03:45:19.1658642Z lfs: false
2024-11-21T03:45:19.1659049Z submodules: false
2024-11-21T03:45:19.1659636Z set-safe-directory: true
2024-11-21T03:45:19.1660125Z ##[endgroup]
2024-11-21T03:45:20.0719205Z Syncing repository: Pvillarroelo/Reserva-clases
2024-11-21T03:45:20.0721326Z ##[group]Getting Git version info
2024-11-21T03:45:20.0722312Z Working directory is '/home/ubuntu/actions-runner/_work/Reserva-clases/Reserva-clases'
2024-11-21T03:45:20.0771508Z [command]/usr/bin/git version
2024-11-21T03:45:20.1615496Z git version 2.34.1
2024-11-21T03:45:20.1617377Z ##[endgroup]
2024-11-21T03:45:20.1632500Z Temporarily overriding HOME='/home/ubuntu/actions-runner/_work/_temp/9bf84725-95e2-41f8-af21-0f20a5a66472' before making global git config changes
2024-11-21T03:45:20.1633776Z Adding repository directory to the temporary git global config as a safe directory
2024-11-21T03:45:20.1635110Z [command]/usr/bin/git config --global --add safe.directory /home/ubuntu/actions-runner/_work/Reserva-clases/Reserva-clases
2024-11-21T03:45:20.1638714Z [command]/usr/bin/git config --local --get remote.origin.url
2024-11-21T03:45:20.1640214Z https://github.com/Pvillarroelo/Reserva-clases
2024-11-21T03:45:20.1641294Z ##[group]Removing previously created refs, to avoid conflicts
2024-11-21T03:45:20.1642336Z [command]/usr/bin/git rev-parse --symbolic-full-name --verify --quiet HEAD
2024-11-21T03:45:20.1669813Z refs/heads/main
2024-11-21T03:45:20.1677878Z [command]/usr/bin/git checkout --detach
2024-11-21T03:45:20.1766832Z HEAD is now at e47164d Update res_martes.yml
2024-11-21T03:45:20.1775781Z [command]/usr/bin/git rev-parse --symbolic-full-name --branches
2024-11-21T03:45:20.1802862Z refs/heads/main
2024-11-21T03:45:20.1808691Z [command]/usr/bin/git branch --delete --force main
2024-11-21T03:45:20.1846313Z Deleted branch main (was e47164d).
2024-11-21T03:45:20.1855540Z [command]/usr/bin/git rev-parse --symbolic-full-name --remotes=origin
2024-11-21T03:45:20.2647105Z refs/remotes/origin/main
2024-11-21T03:45:20.2649142Z ##[endgroup]
2024-11-21T03:45:20.2650223Z ##[group]Cleaning the repository
2024-11-21T03:45:20.2650911Z [command]/usr/bin/git clean -ffdx
2024-11-21T03:45:20.2651507Z [command]/usr/bin/git reset --hard HEAD
2024-11-21T03:45:20.2681292Z HEAD is now at e47164d Update res_martes.yml
2024-11-21T03:45:20.2686700Z ##[endgroup]
2024-11-21T03:45:20.2688987Z ##[group]Disabling automatic garbage collection
2024-11-21T03:45:20.2692483Z [command]/usr/bin/git config --local gc.auto 0
2024-11-21T03:45:20.2726365Z ##[endgroup]
2024-11-21T03:45:20.2728344Z ##[group]Setting up auth
2024-11-21T03:45:20.2733187Z [command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
2024-11-21T03:45:20.2768218Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-11-21T03:45:20.3765739Z [command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
2024-11-21T03:45:20.3794377Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-11-21T03:45:20.4783948Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2024-11-21T03:45:20.5628363Z ##[endgroup]
2024-11-21T03:45:20.5629755Z ##[group]Fetching the repository
2024-11-21T03:45:20.5643454Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +b2afdb495361a0753114523c1834d0d46a91f84b:refs/remotes/origin/main
2024-11-21T03:45:21.4009602Z remote: Enumerating objects: 13, done.
2024-11-21T03:45:21.4015692Z remote: Counting objects: 7% (1/13)
2024-11-21T03:45:21.4018383Z remote: Counting objects: 15% (2/13)
2024-11-21T03:45:21.4019025Z remote: Counting objects: 23% (3/13)
2024-11-21T03:45:21.4520902Z remote: Counting objects: 30% (4/13)
2024-11-21T03:45:21.4521457Z remote: Counting objects: 38% (5/13)
2024-11-21T03:45:21.4521939Z remote: Counting objects: 46% (6/13)
2024-11-21T03:45:21.4522407Z remote: Counting objects: 53% (7/13)
2024-11-21T03:45:21.4522951Z remote: Counting objects: 61% (8/13)
2024-11-21T03:45:21.4523558Z remote: Counting objects: 69% (9/13)
2024-11-21T03:45:21.4524205Z remote: Counting objects: 76% (10/13)
2024-11-21T03:45:21.4524705Z remote: Counting objects: 84% (11/13)
2024-11-21T03:45:21.4525181Z remote: Counting objects: 92% (12/13)
2024-11-21T03:45:21.4525643Z remote: Counting objects: 100% (13/13)
2024-11-21T03:45:21.4526384Z remote: Counting objects: 100% (13/13), done.
2024-11-21T03:45:21.4526899Z remote: Compressing objects: 16% (1/6)
2024-11-21T03:45:21.4527561Z remote: Compressing objects: 33% (2/6)
2024-11-21T03:45:21.4528037Z remote: Compressing objects: 50% (3/6)
2024-11-21T03:45:21.4528645Z remote: Compressing objects: 66% (4/6)
2024-11-21T03:45:21.4529126Z remote: Compressing objects: 83% (5/6)
2024-11-21T03:45:21.4529826Z remote: Compressing objects: 100% (6/6)
2024-11-21T03:45:21.4530328Z remote: Compressing objects: 100% (6/6), done.
2024-11-21T03:45:21.4531222Z remote: Total 7 (delta 4), reused 0 (delta 0), pack-reused 0 (from 0)
2024-11-21T03:45:21.4582432Z From https://github.com/Pvillarroelo/Reserva-clases
2024-11-21T03:45:21.4585182Z + e47164d...b2afdb4 b2afdb495361a0753114523c1834d0d46a91f84b -> origin/main (forced update)
2024-11-21T03:45:21.4611559Z ##[endgroup]
2024-11-21T03:45:21.4618543Z ##[group]Determining the checkout info
2024-11-21T03:45:21.4619695Z ##[endgroup]
2024-11-21T03:45:21.4620343Z ##[group]Checking out the ref
2024-11-21T03:45:21.4621234Z [command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
2024-11-21T03:45:21.4657490Z Warning: you are leaving 1 commit behind, not connected to
2024-11-21T03:45:21.4662496Z any of your branches:
2024-11-21T03:45:21.4662787Z
2024-11-21T03:45:21.4662977Z e47164d Update res_martes.yml
2024-11-21T03:45:21.4663348Z
2024-11-21T03:45:21.4663754Z If you want to keep it by creating a new branch, this may be a good time
2024-11-21T03:45:21.4664500Z to do so with:
2024-11-21T03:45:21.4664735Z
2024-11-21T03:45:21.4665122Z git branch e47164d
2024-11-21T03:45:21.4665785Z
2024-11-21T03:45:21.4672787Z Switched to a new branch 'main'
2024-11-21T03:45:21.4673828Z Branch 'main' set up to track remote branch 'main' from 'origin'.
2024-11-21T03:45:21.4680561Z ##[endgroup]
2024-11-21T03:45:21.4728736Z [command]/usr/bin/git log -1 --format='%H'
2024-11-21T03:45:21.4756597Z 'b2afdb495361a0753114523c1834d0d46a91f84b'
2024-11-21T03:45:21.6575476Z ##[group]Run actions/setup-python@v2
2024-11-21T03:45:21.6576253Z with:
2024-11-21T03:45:21.6576905Z python-version: 3.x
2024-11-21T03:45:21.6577411Z token: ***
2024-11-21T03:45:21.6577703Z ##[endgroup]
2024-11-21T03:45:22.0745669Z Successfully setup CPython (3.13.0)
2024-11-21T03:45:22.5712728Z ##[group]Run actions/cache@v3
2024-11-21T03:45:22.5713107Z with:
2024-11-21T03:45:22.5713369Z path: ~/.cache/pip
2024-11-21T03:45:22.5713918Z key: Linux-pip-fe6c1742e4f0ce7880e60b09316f1b0db4e3ddf7923fe520ce6e6f71c3a8f3a5
2024-11-21T03:45:22.5714559Z restore-keys: Linux-pip-
2024-11-21T03:45:22.5714923Z enableCrossOsArchive: false
2024-11-21T03:45:22.5715303Z fail-on-cache-miss: false
2024-11-21T03:45:22.5715643Z lookup-only: false
2024-11-21T03:45:22.5716742Z env:
2024-11-21T03:45:22.5717385Z pythonLocation: /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64
2024-11-21T03:45:22.5718244Z LD_LIBRARY_PATH: /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib
2024-11-21T03:45:22.5718806Z ##[endgroup]
2024-11-21T03:45:25.3674613Z Received 0 of 11511377 (0.0%), 0.0 MBs/sec
2024-11-21T03:45:26.3674687Z Received 0 of 11511377 (0.0%), 0.0 MBs/sec
2024-11-21T03:45:27.2614096Z Cache Size:
11 MB (11511377 B)=4.9 in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from selenium->-r requirements.txt (line 1)) (4.12.2)2024-11-21T03:45:27.2644722Z [command]/usr/bin/tar -xf /home/ubuntu/actions-runner/_work/_temp/bc051a83-7f7f-4e08-8892-020def3f525f/cache.tzst -P -C /home/ubuntu/actions-runner/_work/Reserva-clases/Reserva-clases --use-compress-program unzstd
2024-11-21T03:45:27.3672651Z Received 11511377 of 11511377 (100.0%), 3.7 MBs/sec
2024-11-21T03:45:27.4864736Z Cache restored successfully
2024-11-21T03:45:27.5628538Z Cache restored from key: Linux-pip-fe6c1742e4f0ce7880e60b09316f1b0db4e3ddf7923fe520ce6e6f71c3a8f3a5
2024-11-21T03:45:27.6581048Z ##[group]Run pip install --cache-dir
/.cache/pip -r requirements.txt=0.9 in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from selenium->-r requirements.txt (line 1)) (0.11.1)2024-11-21T03:45:27.6581842Z �[36;1mpip install --cache-dir
/.cache/pip -r requirements.txt�[0m=0.17 in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from selenium->-r requirements.txt (line 1)) (0.27.0)2024-11-21T03:45:27.6787603Z shell: /usr/bin/bash -e {0}
2024-11-21T03:45:27.6787980Z env:
2024-11-21T03:45:27.6788437Z pythonLocation: /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64
2024-11-21T03:45:27.6789205Z LD_LIBRARY_PATH: /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib
2024-11-21T03:45:27.6790038Z ##[endgroup]
2024-11-21T03:45:29.2662072Z Requirement already satisfied: selenium in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from -r requirements.txt (line 1)) (4.26.1)
2024-11-21T03:45:29.2666567Z Requirement already satisfied: pytz in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from -r requirements.txt (line 2)) (2024.2)
2024-11-21T03:45:29.2671978Z Requirement already satisfied: webdriver-manager in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from -r requirements.txt (line 3)) (4.0.2)
2024-11-21T03:45:29.2715655Z Requirement already satisfied: urllib3<3,>=1.26 in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from urllib3[socks]<3,>=1.26->selenium->-r requirements.txt (line 1)) (2.2.3)
2024-11-21T03:45:29.2725204Z Requirement already satisfied: trio
2024-11-21T03:45:29.2730213Z Requirement already satisfied: trio-websocket
2024-11-21T03:45:29.2735061Z Requirement already satisfied: certifi>=2021.10.8 in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from selenium->-r requirements.txt (line 1)) (2024.8.30)
2024-11-21T03:45:29.2741125Z Requirement already satisfied: typing_extensions
2024-11-21T03:45:29.2745223Z Requirement already satisfied: websocket-client~=1.8 in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from selenium->-r requirements.txt (line 1)) (1.8.0)
2024-11-21T03:45:29.2783187Z Requirement already satisfied: requests in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from webdriver-manager->-r requirements.txt (line 3)) (2.32.3)
2024-11-21T03:45:29.2786764Z Requirement already satisfied: python-dotenv in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from webdriver-manager->-r requirements.txt (line 3)) (1.0.1)
2024-11-21T03:45:29.2795062Z Requirement already satisfied: packaging in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from webdriver-manager->-r requirements.txt (line 3)) (24.2)
2024-11-21T03:45:29.2830736Z Requirement already satisfied: attrs>=23.2.0 in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from trio~=0.17->selenium->-r requirements.txt (line 1)) (24.2.0)
2024-11-21T03:45:29.2835570Z Requirement already satisfied: sortedcontainers in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from trio~=0.17->selenium->-r requirements.txt (line 1)) (2.4.0)
2024-11-21T03:45:29.2840619Z Requirement already satisfied: idna in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from trio~=0.17->selenium->-r requirements.txt (line 1)) (3.10)
2024-11-21T03:45:29.2845023Z Requirement already satisfied: outcome in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from trio~=0.17->selenium->-r requirements.txt (line 1)) (1.3.0.post0)
2024-11-21T03:45:29.2850135Z Requirement already satisfied: sniffio>=1.3.0 in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from trio~=0.17->selenium->-r requirements.txt (line 1)) (1.3.1)
2024-11-21T03:45:29.2873371Z Requirement already satisfied: wsproto>=0.14 in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from trio-websocket~=0.9->selenium->-r requirements.txt (line 1)) (1.2.0)
2024-11-21T03:45:29.2925781Z Requirement already satisfied: pysocks!=1.5.7,<2.0,>=1.5.6 in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from urllib3[socks]<3,>=1.26->selenium->-r requirements.txt (line 1)) (1.7.1)
2024-11-21T03:45:29.3005076Z Requirement already satisfied: charset-normalizer<4,>=2 in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from requests->webdriver-manager->-r requirements.txt (line 3)) (3.4.0)
2024-11-21T03:45:29.3694000Z Requirement already satisfied: h11<1,>=0.9.0 in /home/ubuntu/actions-runner/_work/_tool/Python/3.13.0/x64/lib/python3.13/site-packages (from wsproto>=0.14->trio-websocket~=0.9->selenium->-r requirements.txt (line 1)) (0.14.0)
2024-11-21T03:45:29.6742174Z ##[group]Run python reserva_clase_miercoles.py
Beta Was this translation helpful? Give feedback.
All reactions