add git pull worker

This commit is contained in:
Kenta420 2023-10-30 10:45:33 +07:00
parent 70cfd89fc4
commit 15e74d47e3
5 changed files with 71 additions and 37 deletions

View file

@ -35,6 +35,9 @@ func main() {
serverStopCtx()
}()
// Spawn a goroutine to run git pull every 10 minutes
go RunGitRecipeWorker()
err := s.Run()
if err != nil {
log.Fatal(err)