feat: start provider ingestion and orchestration coordination

This commit is contained in:
kami
2026-07-26 19:49:41 +04:00
parent aa6719ca16
commit 64abbe900e
3 changed files with 100 additions and 5 deletions
+9
View File
@@ -245,6 +245,15 @@ func main() {
}
}()
}
if path := os.Getenv("ORCHESTRA_JSONL"); path != "" {
go func() {
ctx := context.Background()
err := (provider.JSONLWatcher{Path: path, Interval: time.Second, Provider: provider.JSONL{Source: "jsonl"}}).Run(ctx, s)
if err != nil {
log.Printf("jsonl provider: %v", err)
}
}()
}
port := os.Getenv("ORCHESTRA_PORT")
if port == "" {
port = "9145"