feat(generation): resume manual summary jobs
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
@ -43,6 +44,10 @@ func main() {
|
||||
}
|
||||
|
||||
repo := models.NewRepository(db)
|
||||
// Single server deployment: previous process workers cannot survive restart.
|
||||
if err := repo.RecoverGenerationJobs(context.Background()); err != nil {
|
||||
log.Fatal("generation jobs: recovery failed")
|
||||
}
|
||||
enc := crypto.New(cfg.EncryptionKey)
|
||||
|
||||
if err := ensureAdmin(repo, cfg); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user