29 lines
632 B
Go
29 lines
632 B
Go
// Command semantic-backfill schedules vector jobs for the existing published
|
|
// candidates and needs of a stand. It changes no product data.
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"os"
|
|
"os/signal"
|
|
"syscall"
|
|
"time"
|
|
|
|
"lincodex/backend/internal/adapter/primary/cli/semanticbackfill"
|
|
)
|
|
|
|
func main() {
|
|
os.Exit(run())
|
|
}
|
|
|
|
func run() int {
|
|
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
|
|
defer stop()
|
|
if err := semanticbackfill.Run(ctx, os.Args[1:], os.LookupEnv, os.Stdout, time.Now); err != nil {
|
|
_, _ = fmt.Fprintf(os.Stderr, "semantic-backfill: %v\n", err)
|
|
return 2
|
|
}
|
|
return 0
|
|
}
|