From 994bef2ace4dc707f1221c891d457a68845cc294 Mon Sep 17 00:00:00 2001 From: Brian Ginsburg Date: Tue, 17 Dec 2024 19:31:26 -0800 Subject: [PATCH] temp: Add test debugging statements --- pkg/solver/controller.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkg/solver/controller.go b/pkg/solver/controller.go index 34de483f..c3d3a879 100644 --- a/pkg/solver/controller.go +++ b/pkg/solver/controller.go @@ -413,6 +413,8 @@ func (controller *SolverController) removeUnmatchedResourceOffers(ID string) err if err != nil { return err } + // TODO Remove before merge + fmt.Printf("+++ resource offers before removal: %+v\n", resourceOffers) for _, offer := range resourceOffers { if offer.State == 0 { @@ -423,6 +425,15 @@ func (controller *SolverController) removeUnmatchedResourceOffers(ID string) err } } + // TODO Remove before merge + offersAfter, err := controller.store.GetResourceOffers(store.GetResourceOffersQuery{ + ResourceProvider: ID, + }) + if err != nil { + return err + } + fmt.Printf("+++ resource offers after removal: %+v\n", offersAfter) + controller.writeEvent(SolverEvent{ EventType: ResourceOfferRemoved, ResourceOffer: nil,