[GH-ISSUE #330] Alerts should pause when jobs aren't supposed to run #251

Closed
opened 2026-02-25 23:41:46 +03:00 by kerem · 8 comments
Owner

Originally created by @screencomuser on GitHub (Feb 13, 2020).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/330

Running self hosted, version v1.12.0

I have a job with the following schedule */5 6-23 ͏* ͏* ͏* and a grace time of 15 minutes.

At 23:15 I receive an alert that the job is DOWN
At 06:00 I receive an alert that the job is UP

Is it possible to suspend alerts for jobs that shouldn't be running? Or do I need to change something in the configuration?

Originally created by @screencomuser on GitHub (Feb 13, 2020). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/330 Running self hosted, version v1.12.0 I have a job with the following schedule `*/5 6-23 ͏* ͏* ͏*` and a grace time of 15 minutes. At 23:15 I receive an alert that the job is DOWN At 06:00 I receive an alert that the job is UP Is it possible to suspend alerts for jobs that shouldn't be running? Or do I need to change something in the configuration?
kerem closed this issue 2026-02-25 23:41:46 +03:00
Author
Owner

@cuu508 commented on GitHub (Feb 13, 2020):

How does the configuration in Healthchecks look currently?
Are you using a "cron" check (not "simple")? Is the timezone set correctly?

<!-- gh-comment-id:585650568 --> @cuu508 commented on GitHub (Feb 13, 2020): How does the configuration in Healthchecks look currently? Are you using a "cron" check (not "simple")? Is the timezone set correctly?
Author
Owner

@screencomuser commented on GitHub (Feb 13, 2020):

Yes, I'm using only "cron" checks. The timezone for the check is set to the same timezone as the server (Europe/Amsterdam)

Can you point me to something that I could attach here that might shed more light on this?

I was thinking that it might be easiest to add some logic to the alert process, like "should this process be running based on cron"

<!-- gh-comment-id:585662761 --> @screencomuser commented on GitHub (Feb 13, 2020): Yes, I'm using only "cron" checks. The timezone for the check is set to the same timezone as the server (Europe/Amsterdam) Can you point me to something that I could attach here that might shed more light on this? I was thinking that it might be easiest to add some logic to the alert process, like "should this process be running based on cron"
Author
Owner

@cuu508 commented on GitHub (Feb 13, 2020):

Could you post a screenshot of the received pings log, from around 23:00 where the sent notifications are visible? Edit out IP addresses and User-Agents, if they're sensitive. Set the display timezone to UTC:

image

<!-- gh-comment-id:585695715 --> @cuu508 commented on GitHub (Feb 13, 2020): Could you post a screenshot of the received pings log, from around 23:00 where the sent notifications are visible? Edit out IP addresses and User-Agents, if they're sensitive. Set the display timezone to UTC: ![image](https://user-images.githubusercontent.com/661859/74430338-58668a80-4e65-11ea-8f38-9f7e34024375.png)
Author
Owner

@screencomuser commented on GitHub (Feb 13, 2020):

I will do that tomorrow morning.

<!-- gh-comment-id:585887369 --> @screencomuser commented on GitHub (Feb 13, 2020): I will do that tomorrow morning.
Author
Owner

@screencomuser commented on GitHub (Feb 14, 2020):

Screenshot 2020-02-14 at 09 10 09

<!-- gh-comment-id:586173288 --> @screencomuser commented on GitHub (Feb 14, 2020): ![Screenshot 2020-02-14 at 09 10 09](https://user-images.githubusercontent.com/29376713/74518442-206a5080-4f14-11ea-8b7c-58d8ec41992a.png)
Author
Owner

@cuu508 commented on GitHub (Feb 14, 2020):

*/5 6-23 ͏* ͏* ͏* would translate to "every 5th minute, from 6 to 23 (inclusive).

There is a ping on 21:55 UTC (22:55 Amsterdam time), and no more pings until the morning. But Healthchecks is still expecting pings at 22:00, 22:05, 22:10, ..., 22:55 (Amsterdam time: 23:00, 23:05, 23:10, ...., 23:55).

It looks as if the actual cron schedule on the server is */5 6-22 ͏* ͏* ͏*.

<!-- gh-comment-id:586180784 --> @cuu508 commented on GitHub (Feb 14, 2020): `*/5 6-23 ͏* ͏* ͏*` would translate to "every 5th minute, from 6 to 23 (inclusive). There is a ping on 21:55 UTC (22:55 Amsterdam time), and no more pings until the morning. But Healthchecks is still expecting pings at 22:00, 22:05, 22:10, ..., 22:55 (Amsterdam time: 23:00, 23:05, 23:10, ...., 23:55). It looks as if the actual cron schedule on the server is `*/5 6-22 ͏* ͏* ͏*`.
Author
Owner

@screencomuser commented on GitHub (Feb 14, 2020):

It would certainly seem that way. I have a feeling I know where I went astray.

These crons have been created from Laravel tasks (an external project that can convert tasks to crons) so I think I have been barking up the wrong tree. I will triple check it.

Thanks for now. I'll let you know if that was indeed the problem

<!-- gh-comment-id:586354376 --> @screencomuser commented on GitHub (Feb 14, 2020): It would certainly seem that way. I have a feeling I know where I went astray. These crons have been created from Laravel tasks (an external project that can convert tasks to crons) so I think I have been barking up the wrong tree. I will triple check it. Thanks for now. I'll let you know if that was indeed the problem
Author
Owner

@screencomuser commented on GitHub (Feb 17, 2020):

Your hunch was absolutely correct. It was user error. I had entered the crons incorrectly.

Thank you for you assistance. Everything is working perfectly now!

<!-- gh-comment-id:586920853 --> @screencomuser commented on GitHub (Feb 17, 2020): Your hunch was absolutely correct. It was user error. I had entered the crons incorrectly. Thank you for you assistance. Everything is working perfectly now!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/healthchecks#251
No description provided.