Skip to content

Commit

Permalink
feat: Add match on disk space
Browse files Browse the repository at this point in the history
  • Loading branch information
bgins committed Dec 13, 2024
1 parent a7bd9da commit e7fd53a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/solver/matcher/match.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,13 @@ func matchOffers(
}
}

if resourceOffer.Spec.Disk < jobOffer.Spec.Disk {
return &diskSpaceMismatch{
jobOffer: jobOffer,
resourceOffer: resourceOffer,
}
}

moduleID, err := data.GetModuleID(jobOffer.Module)
if err != nil {
return &moduleIDError{
Expand Down

0 comments on commit e7fd53a

Please sign in to comment.