1
0
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:
Ferdinand Mütsch
2022-11-19 22:21:51 +01:00
parent b1a12a5759
commit e2ef54152d
7 changed files with 204 additions and 88 deletions

11
utils/cron.go Normal file
View 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
}