[GH-ISSUE #707] Advanced Custom Cron #509

Closed
opened 2026-02-25 23:42:43 +03:00 by kerem · 1 comment
Owner

Originally created by @MichalisDBA on GitHub (Sep 21, 2022).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/707

Hello.

We have a cronjob that looks like this

00 09 1-7 * * [ "$(date '+\%a')" == "Sun" ]

It runs only At 09:00 on every day-of-month from 1 through 7 BUT if the day is Sunday. So to summarize it runs every first Sunday of a new month.

How is it possible to setup something like this in healthchecks system without giving false possitives alerts etc.?

Originally created by @MichalisDBA on GitHub (Sep 21, 2022). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/707 Hello. We have a cronjob that looks like this ``` 00 09 1-7 * * [ "$(date '+\%a')" == "Sun" ] ``` It runs only At 09:00 on every day-of-month from 1 through 7 BUT if the day is Sunday. So to summarize it runs every first Sunday of a new month. How is it possible to setup something like this in healthchecks system without giving false possitives alerts etc.?
kerem closed this issue 2026-02-25 23:42:43 +03:00
Author
Owner

@cuu508 commented on GitHub (Sep 21, 2022):

You can use 00 09 * * SUN#1.

#1 is a non-standard syntax feature. Here are a couple others that healthchecks supports.

<!-- gh-comment-id:1253523116 --> @cuu508 commented on GitHub (Sep 21, 2022): You can use `00 09 * * SUN#1`. `#1` is a non-standard syntax feature. [Here are a couple others](https://github.com/cuu508/cronsim#cron-expression-feature-matrix) that healthchecks supports.
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#509
No description provided.