1
0
Fork 0
mirror of https://github.com/benbusby/farside.git synced 2025-04-19 02:18:42 +00:00

Run cron init in goroutine

Cron init blocks the server from starting until it finishes, which is
not ideal.
This commit is contained in:
Ben Busby 2025-02-26 12:38:18 -07:00
parent d15e05d39e
commit 6970db9c5b
No known key found for this signature in database
GPG key ID: B9B7231E01D924A1

View file

@ -24,7 +24,7 @@ func main() {
}
}()
db.InitCronTasks()
go db.InitCronTasks()
signalChan := make(chan os.Signal, 1)
signal.Notify(signalChan, os.Interrupt, syscall.SIGTERM)