argoyle 52d52a222c
Unbound Release / Check Preconditions (push) Successful in 3s
Unbound Release / Create Tag (push) Skipped
Unbound Release / Create Release (push) Successful in 15s
Unbound Release / Generate Changelog and Handle PR (push) Successful in 17s
Release / release (push) Successful in 21s
cron-checker / test (push) Successful in 2m12s
cron-checker / vulnerabilities (push) Successful in 2m15s
cron-checker / build (push) Successful in 50s
fix: evaluate schedules in the cronjob's spec.timeZone (#428)
Schedules were always evaluated in UTC because `schedule.Next` uses the location of `lastScheduleTime`, which the API returns in UTC. A CronJob with `spec.timeZone` set was therefore reported as not running every day. For example, Paidit's `prod/dayclose` runs at `0 7 * * *` Europe/Stockholm: it ran at 05:00Z, but cron-checker expected 07:00Z and alerted every minute from 09:02 local time.

- Convert `since` to the CronJob's `spec.timeZone` before computing the next run. CronJobs without a `timeZone` behave as before.
- An invalid time zone returns an error, the same way an invalid schedule does.
- Embed `time/tzdata`, because the image is `FROM scratch` and has no zoneinfo.
- Tests: an invalid time zone, and a time-zone case that fails without the fix.
- Bumped golang.org/x/net to v0.60.0. govulncheck was already failing on main with five x/net advisories, which blocks the build job.
- Bumped the go toolchain to 1.27.2 for eight stdlib advisories. This is the same change as Renovate #427, which will close once this is merged.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01C8SW6vsbkrTKjLNatQ8JTg
Reviewed-on: https://gitea.unbound.se/unboundsoftware/cron-checker/pulls/428
2026-10-09 07:54:30 +00:00
2020-08-27 09:52:25 +02:00
2020-08-27 09:52:25 +02:00
2021-11-04 19:32:02 +01:00
2020-08-27 10:27:29 +02:00
2024-02-23 16:56:06 +00:00

cron-checker

Build Status codecov

A small container which periodically (every 60s) checks for a cronjobs which are not running according to schedule and sends a notification to Slack.

Example deployment-file

S
Description
No description provided
Readme
2.1 MiB
0 Stars 6 Watchers 0 Forks
1.6.12
Latest
2026-10-09 07:59:53 +00:00
Languages
Go 94.7%
Dockerfile 5.3%