Skip to content

Commit

Permalink
Make it a non-fatal error if we are unable to get slot information (#891
Browse files Browse the repository at this point in the history
)
  • Loading branch information
iskakaushik authored Dec 23, 2023
1 parent be6b5c2 commit e20a2e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions flow/activities/slot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit e20a2e5

Please sign in to comment.