[GH-ISSUE #473] Cron expression with commas causes warning #352

Closed
opened 2026-02-25 23:42:08 +03:00 by kerem · 7 comments
Owner

Originally created by @bradbeattie on GitHub (Feb 1, 2021).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/473

45 9,19 * * * is showing me an warning, even though the cronjob is running on time. Adjusting the expression to 45 9 * * * out of curiosity then shows the check as healthy. So it looks like cron expressions with commas aren't being considered correctly.

Originally created by @bradbeattie on GitHub (Feb 1, 2021). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/473 `45 9,19 * * *` is showing me an warning, even though the cronjob is running on time. Adjusting the expression to `45 9 * * *` out of curiosity then shows the check as healthy. So it looks like cron expressions with commas aren't being considered correctly.
kerem closed this issue 2026-02-25 23:42:08 +03:00
Author
Owner

@bradbeattie commented on GitHub (Feb 1, 2021):

Running on v1.18.0, if that helps.

<!-- gh-comment-id:770497571 --> @bradbeattie commented on GitHub (Feb 1, 2021): Running on v1.18.0, if that helps.
Author
Owner

@cuu508 commented on GitHub (Feb 1, 2021):

By warning, do you mean the orange warning icon ("late" status)?

Can you post here or email me a screenshot of the check's details page when it is in the warning state (interested in seeing the schedule, timezone, and the log of received pings)?

<!-- gh-comment-id:770638588 --> @cuu508 commented on GitHub (Feb 1, 2021): By warning, do you mean the orange warning icon ("late" status)? Can you post here or email me a screenshot of the check's details page when it is in the warning state (interested in seeing the schedule, timezone, and the log of received pings)?
Author
Owner

@bradbeattie commented on GitHub (Feb 1, 2021):

Interesting. Now that I go to check it, I see more orange warning icons than expected (late status).

healthchecks home lan

But in the screenshot attached, the last ping was 22 hours ago, within the expected 24h window.

My browser's time is UTC-8 and so its the server that runs the cronjob... oh wait. Does Healthchecks assume that a cron expression is expressed in UTC? Such that 0 10 * * * means 10am UTC+0? That might be the source of the hiccup here.

<!-- gh-comment-id:771004770 --> @bradbeattie commented on GitHub (Feb 1, 2021): Interesting. Now that I go to check it, I see more orange warning icons than expected (late status). ![healthchecks home lan](https://user-images.githubusercontent.com/54340/106491391-ac4df300-646b-11eb-92e7-6aef8fa119ec.png) But in the screenshot attached, the last ping was 22 hours ago, within the expected 24h window. My browser's time is UTC-8 and so its the server that runs the cronjob... oh wait. Does Healthchecks assume that a cron expression is expressed in UTC? Such that `0 10 * * *` means 10am UTC+0? That might be the source of the hiccup here.
Author
Owner

@bradbeattie commented on GitHub (Feb 1, 2021):

Yeah, that was it. Apologies. I had set these before, but failed to set the server timezone when recreating the checks last time.

<!-- gh-comment-id:771005967 --> @bradbeattie commented on GitHub (Feb 1, 2021): Yeah, that was it. Apologies. I had set these before, but failed to set the server timezone when recreating the checks last time.
Author
Owner

@andyg2 commented on GitHub (Jan 13, 2023):

I have a similar problem to this

A cron schedule for ever hour between 9am and 5pm
The last check was 26 minutes ago at 10am and a grace period of 1 hour (10:26 currently)

Perhaps I misunderstand how the grace period but from what it seems I should not be seeing a late status.

image

image

<!-- gh-comment-id:1381634973 --> @andyg2 commented on GitHub (Jan 13, 2023): I have a similar problem to this A cron schedule for ever hour between 9am and 5pm The last check was 26 minutes ago at 10am and a grace period of 1 hour (10:26 currently) Perhaps I misunderstand how the grace period but from what it seems I should not be seeing a late status. ![image](https://user-images.githubusercontent.com/1462766/212298033-5464bcce-e6bb-4568-9ef2-bb490449ad42.png) ![image](https://user-images.githubusercontent.com/1462766/212298377-6c6139cb-f8d6-409a-82e1-6faac62a8063.png)
Author
Owner

@cuu508 commented on GitHub (Jan 13, 2023):

@andyg2 it does not look right to me too. Is this on healthchecks.io or a self-hosted instance?

<!-- gh-comment-id:1381791804 --> @cuu508 commented on GitHub (Jan 13, 2023): @andyg2 it does not look right to me too. Is this on healthchecks.io or a self-hosted instance?
Author
Owner

@andyg2 commented on GitHub (Jan 16, 2023):

@andyg2 it does not look right to me too. Is this on healthchecks.io or a self-hosted instance?

It's self hosted. Oh, linuxserver docker image though, will report there instead. Will update here if I find anything useful as it seems related to this issue.

<!-- gh-comment-id:1384608491 --> @andyg2 commented on GitHub (Jan 16, 2023): > @andyg2 it does not look right to me too. Is this on healthchecks.io or a self-hosted instance? It's self hosted. Oh, linuxserver docker image though, will report there instead. Will update here if I find anything useful as it seems related to this issue.
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#352
No description provided.