Add weekend ingestion orchestration

This commit is contained in:
2026-05-25 02:38:27 -04:00
parent 2c9db0213c
commit f2339a00a9
8 changed files with 404 additions and 128 deletions

View File

@@ -40,9 +40,40 @@ func (p *Progress) Summary(summary Summary) {
if summary.StartingGrid > 0 {
fmt.Fprintf(p.w, " starting grid: %d\n", summary.StartingGrid)
}
if summary.Stints > 0 {
fmt.Fprintf(p.w, " stints: %d\n", summary.Stints)
}
if summary.PitStops > 0 {
fmt.Fprintf(p.w, " pit stops: %d\n", summary.PitStops)
}
if summary.Positions > 0 {
fmt.Fprintf(p.w, " positions: %d\n", summary.Positions)
}
if summary.RaceControl > 0 {
fmt.Fprintf(p.w, " race control: %d\n", summary.RaceControl)
}
if summary.Weather > 0 {
fmt.Fprintf(p.w, " weather: %d\n", summary.Weather)
}
if summary.Laps > 0 {
fmt.Fprintf(p.w, " laps: %d\n", summary.Laps)
}
if summary.RawPayloads > 0 {
fmt.Fprintf(p.w, " raw payloads fetched: %d (inserted: %d)\n", summary.RawPayloads, summary.RawInserted)
}
for _, ss := range summary.SessionSummaries {
fmt.Fprintf(p.w, " session %d (%s): status=%s", ss.SessionKey, ss.SessionName, ss.Summary.Status)
if ss.Summary.Drivers > 0 || ss.Summary.SessionResults > 0 {
fmt.Fprintf(p.w, " drivers=%d results=%d", ss.Summary.Drivers, ss.Summary.SessionResults)
}
if ss.Summary.RawPayloads > 0 {
fmt.Fprintf(p.w, " raw=%d", ss.Summary.RawPayloads)
}
fmt.Fprintln(p.w)
for _, errMsg := range ss.Summary.Errors {
fmt.Fprintf(p.w, " error: %s\n", errMsg)
}
}
for _, errMsg := range summary.Errors {
fmt.Fprintf(p.w, " error: %s\n", errMsg)
}