Skip to content

E0412: A cron is declared twice ​

A cron's name is its function's (jobs.cleanUp outside main), and two crons have the same one, so crontest and the toolbar can't tell them apart. Reported at boot.

Wrong ​

go
app.Cron("cleanUp", "@every 1h", cleanSessions)
app.Cron("cleanUp", "@every 1d", cleanUploads)
go
app.Cron("cleanSessions", "@every 1h", cleanSessions)
app.Cron("cleanUploads", "@every 1d", cleanUploads)

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.