mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 23:15:49 +03:00
[GH-ISSUE #330] Alerts should pause when jobs aren't supposed to run #251
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#251
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
@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?
@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"
@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:
@screencomuser commented on GitHub (Feb 13, 2020):
I will do that tomorrow morning.
@screencomuser commented on GitHub (Feb 14, 2020):
@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 ͏* ͏* ͏*.@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
@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!