Skip to content

Commit

Permalink
temp: Add test debugging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
bgins committed Dec 18, 2024
1 parent 22fa34c commit 994bef2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/solver/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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,
Expand Down

0 comments on commit 994bef2

Please sign in to comment.