Library to run func by cron. Also to limit func runtime. Written in Golang
var myfunc = func() { // func example time.Sleep(time.Second * 10) } isTimeIsUP := simplecron.NewRuntimeLimitHandler( time.Second * 2, myfunc, ).Run() if isTimeIsUP { // handle timeout }