mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
refactor(wip): introduce job processing system
refactor: adapt report generation scheduling
This commit is contained in:
11
utils/cron.go
Normal file
11
utils/cron.go
Normal file
@ -0,0 +1,11 @@
|
||||
package utils
|
||||
|
||||
import "strings"
|
||||
|
||||
func CronPadToSecondly(expr string) string {
|
||||
parts := strings.Split(expr, " ")
|
||||
if len(parts) == 6 {
|
||||
return expr
|
||||
}
|
||||
return "0 " + expr
|
||||
}
|
Reference in New Issue
Block a user