From d955946f159206988d78acebd4b29631adad8308 Mon Sep 17 00:00:00 2001 From: JT Olio Date: Fri, 4 Dec 2020 13:11:11 -0700 Subject: [PATCH] satellite/compensation: don't abort entirely if a node isn't found Change-Id: I1066fb6a281eece892ad179a24b01b2ff6615fe7 --- cmd/satellite/compensation.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/satellite/compensation.go b/cmd/satellite/compensation.go index 01d9c8e70..55eb2bfe5 100644 --- a/cmd/satellite/compensation.go +++ b/cmd/satellite/compensation.go @@ -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 {