feat: update

This commit is contained in:
yanghao05
2025-04-22 14:45:04 +08:00
parent fb8c9a68a4
commit b1f090918d
19 changed files with 43 additions and 35 deletions

View File

@@ -97,6 +97,12 @@ func Serve(cmd *cobra.Command, args []string) error {
route.Register(group)
}
if err := svc.Job.Start(ctx); err != nil {
log.WithError(err).Error("job start failed")
return err
}
defer svc.Job.StopAndCancel(ctx)
return svc.Http.Serve()
})
}