Files
open-im-server/cmd/crontask/main.go
T

18 lines
266 B
Go
Raw Normal View History

2022-08-10 12:07:32 +08:00
package main
2022-08-09 16:38:33 +08:00
import (
2023-03-03 17:42:26 +08:00
"OpenIM/internal/tools"
2023-03-08 11:45:54 +08:00
"OpenIM/pkg/common/cmd"
2022-08-09 16:38:33 +08:00
"fmt"
2023-03-08 11:45:54 +08:00
"os"
2022-08-09 16:38:33 +08:00
)
func main() {
2023-03-08 11:45:54 +08:00
cronTaskCmd := cmd.NewCronTaskCmd()
cronTaskCmd.AddRunE(tools.StartCronTask)
if err := cronTaskCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
2023-02-23 18:20:45 +08:00
}
2022-08-09 16:38:33 +08:00
}