From 89dde09156457f46441dd1d60f82b061689a1312 Mon Sep 17 00:00:00 2001 From: Kaushik Iska Date: Sat, 23 Dec 2023 15:41:23 -0500 Subject: [PATCH] Make it a non-fatal error if we are unable to get slot information --- flow/activities/slot.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flow/activities/slot.go b/flow/activities/slot.go index cf1375b4e4..117dbecea3 100644 --- a/flow/activities/slot.go +++ b/flow/activities/slot.go @@ -23,6 +23,11 @@ func (a *FlowableActivity) handleSlotInfo( return err } + if slotInfo == nil || len(slotInfo) == 0 { + slog.WarnContext(ctx, "warning: unable to get slot info", slog.Any("slotName", slotName)) + return nil + } + deploymentUIDPrefix := "" if peerdbenv.PeerDBDeploymentUID() != "" { deploymentUIDPrefix = fmt.Sprintf("[%s] ", peerdbenv.PeerDBDeploymentUID())