satellite/compensation: don't abort entirely if a node isn't found

Change-Id: I1066fb6a281eece892ad179a24b01b2ff6615fe7
This commit is contained in:
JT Olio 2020-12-04 13:11:11 -07:00 committed by Stefan Benten
parent 2dddcffe43
commit d955946f15

View File

@ -57,7 +57,8 @@ func generateInvoicesCSV(ctx context.Context, period compensation.Period, out io
node, err := db.OverlayCache().Get(ctx, usage.NodeID)
if err != nil {
return err
zap.L().Warn("failed to get node, skipping", zap.String("nodeID", usage.NodeID.String()), zap.Error(err))
continue
}
var gracefulExit *time.Time
if node.ExitStatus.ExitSuccess {