question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cron triggered two times at once and missed one time

See original GitHub issue

Describe the bug My action is scheduled to run every hour: https://github.com/Maxim-Mazurok/google-api-typings-generator/blob/master/.github/workflows/build.yml

But recently this action got run on the same hour twice and missed another run. You can see in the log below, that I expected job to run at 16:04:xx, but it got ran on 17:04:09

This is the start times of my action: Mon, 09 Mar 2020 15:04:09 GMT (https://github.com/Maxim-Mazurok/google-api-typings-generator/runs/495421149) Mon, 09 Mar 2020 17:04:09 GMT (https://github.com/Maxim-Mazurok/google-api-typings-generator/runs/495738420) Mon, 09 Mar 2020 17:04:08 GMT (https://github.com/Maxim-Mazurok/google-api-typings-generator/runs/495738422)

To Reproduce It seems like a one-off thing, I investigate every build fail and haven’t found anything like this.

Expected behavior It was expected for script to run every hour

Runner Version and Platform

2.165.2

Linux

What’s not working?

 ! [remote rejected] types -> types (cannot lock ref 'refs/heads/types': is at 70187e254f5923245a73c42eefe7e5fa2637f4f1 but expected b990ce033f1106f6a9d5d76e7bb725b9490fc96a)
858
error: failed to push some refs to 'git@github.com:Maxim-Mazurok/google-api-typings-generator.git'

caused by two runs at once

Job Log Output

Mon, 09 Mar 2020 15:04:09 GMT (https://github.com/Maxim-Mazurok/google-api-typings-generator/runs/495421149) Mon, 09 Mar 2020 17:04:09 GMT (https://github.com/Maxim-Mazurok/google-api-typings-generator/runs/495738420) Mon, 09 Mar 2020 17:04:08 GMT (https://github.com/Maxim-Mazurok/google-api-typings-generator/runs/495738422)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
TingluoHuangcommented, Jun 6, 2020

close this as the internal issue has been closed.

1reaction
andymckaycommented, Mar 24, 2020

Thanks @Maxim-Mazurok @TingluoHuang, I’ve filed an issue internally with the team and we’ll take a look at that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is this cron entry executed twice?
This entry works but every 5 minutes it gets executed twice, why? ... So it's not from two users. It is only entered...
Read more >
How do I trigger a cron scheduler workflow multiple times ...
Kyle Schiess : Say I want a single workflow to run at multiple hours throughout the day. Would it be better to have...
Read more >
Crontab: run a job once on Sunday and twice on the other ...
Another solution is run shell script which will run task twice or even run it every day but do Your custom time checks...
Read more >
How to set the cron expression twice a day? - Learn
Hello, Can someone help me how to set the cron expression for twice a day? I want the process to run specifically at...
Read more >
Hi Guys....I need a CRON EXPRESSION to run a job once ...
Actually we have a job that was running twice in a day from MON-FRI (Eg 10AM and 6PM). Now we have new requirement...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found