Skip to content

E0411: A cron is wrong ​

A cron's spec is a cron expression (0 7 * * 1-5, with an optional CRON_TZ=…) or @every 10m, and it decorates a function taking a context.Context and provided types, returning nothing or an error. Reported at boot.

Wrong ​

vuka
@web.Cron("every 10 minutes")
func cleanUp(ctx context.Context) {}
vuka
@web.Cron("@every 10m")
func cleanUp(ctx context.Context) {}

Released under the MIT License. Vuka builds on Go and its tools, which are made by the Go Authors. Vuka is not affiliated with Google or the Go project. Go is a trademark of Google LLC.