# Bug - hourly cron job intervals make hourly cron fail (planned for r60)

**URL:** https://discussions.eramba.org/t/bug-hourly-cron-job-intervals-make-hourly-cron-fail-planned-for-r60/697
**Category:** Forum - Software
**Created:** [May 28, 2018, 2:09pm UTC](https://discussions.eramba.org/t/bug-hourly-cron-job-intervals-make-hourly-cron-fail-planned-for-r60/697 "2018-05-28T14:09:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Fabian](https://discussions.eramba.org/letter_avatar_proxy/v4/letter/f/f6c823/32.png) [@Fabian](https://discussions.eramba.org/u/Fabian)
#### Post date: [May 28, 2018, 2:09pm UTC](https://discussions.eramba.org/t/bug-hourly-cron-job-intervals-make-hourly-cron-fail-planned-for-r60/697/1 "2018-05-28T14:09:20Z")

</div>

Hi

I have just noticed that the hourly cron is not executed regularly: As soon as it’s executed with a delay the job of the next period (hour / day) fails. Could you add some timing buffer, so that it only checks the last 50 minutes for example?

 ![image](https://discussions.eramba.org/uploads/default/original/1X/4b5e118cf9c45760b341e462488027e1a66e2dab.png)

Regards  
Fabian

---

<div class="post-metadata">

### Author: ![eramba](https://discussions.eramba.org/letter_avatar_proxy/v4/letter/e/c6cbf5/32.png) [@eramba](https://discussions.eramba.org/u/eramba)
#### Post date: [May 28, 2018, 2:46pm UTC](https://discussions.eramba.org/t/bug-hourly-cron-job-intervals-make-hourly-cron-fail-planned-for-r60/697/2 "2018-05-28T14:46:17Z")

</div>

> [@Fabian](#):
>
> As soon as it’s executed with a delay the job of the next period (hour / day) fails

Yes , we are aware of this and so far this has not been a mayor issue (well, is annoying of course) as that cron only handled email flushing but now it does other things (dashboards, account reviews, etc) and so it is becoming a problem.

The solution is not changing the config on the linux box but instead checking if the previous job finished or not (it does some locking so we know that).

I would call this a bug rather than a question…internal reference: [https://github.com/eramba/eramba\_v2/issues/1305](https://github.com/eramba/eramba_v2/issues/1305)

I’ll chat with our devs tomorrow and let you know

Thanks Fabian

---

<div class="post-metadata">

### Author: ![eramba](https://discussions.eramba.org/letter_avatar_proxy/v4/letter/e/c6cbf5/32.png) [@eramba](https://discussions.eramba.org/u/eramba)
#### Post date: [May 29, 2018, 1:30pm UTC](https://discussions.eramba.org/t/bug-hourly-cron-job-intervals-make-hourly-cron-fail-planned-for-r60/697/3 "2018-05-29T13:30:54Z")

</div>

We just fixed this, it will let up to 10 minutes of hourly cron (which is far more than it should run), we’ll package this tomorrow and make a release.

Thanks Fabian!

---

<div class="post-metadata">

### Author: ![Fabian](https://discussions.eramba.org/letter_avatar_proxy/v4/letter/f/f6c823/32.png) [@Fabian](https://discussions.eramba.org/u/Fabian)
#### Post date: [May 29, 2018, 1:42pm UTC](https://discussions.eramba.org/t/bug-hourly-cron-job-intervals-make-hourly-cron-fail-planned-for-r60/697/4 "2018-05-29T13:42:18Z")

</div>

I admit it’s a rather small point. But thanks for responding this fast!

Fabian
