Subject: bug#75843: shepherd: cron-string->calendar-event does not accept "*/15 * * * *"

From: 45mg <[email-masked]>
Date: Sun, 26 Jan 2025 11:44:41 +0000

Tomas Volf <[email-masked]> writes:

> ERROR: In procedure eval:
> ERROR:
>   1. &message: "\"*/15 * * * *\": invalid minutes cron field"
> --8<---------------cut here---------------end--------------->8---
>
> It seems to work with 0-59/15, so there possibly is some bug in handling
> the *.

I get a similar error with `(cron-string->calendar-event "* * * * *")`
in a `shepherd-service`:

--8<---------------cut here---------------start------------->8---
$ sudo guix system reconfigure config.scm
...
guix system: warning: exception caught while executing 'eval' on service 'root':
Throw to key `%exception' with args `("#<&message message: \"calendar-event: hours: 24: value out of range (0-23)\">")'.
--8<---------------cut here---------------end--------------->8---

but '* 0-23 * * *' works.