Skip to content

Commit

Permalink
add health check to scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
rawdaGastan committed Jul 2, 2024
1 parent a4c3a50 commit b7078f7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/provider/scheduler/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var (
type Request struct {
Capacity Capacity
Name string
FarmId uint32
FarmID uint32
PublicConfig bool
PublicIpsCount uint32
Certified bool
Expand All @@ -28,8 +28,9 @@ func (r *Request) constructFilter(twinID uint64) (f proxyTypes.NodeFilter) {
// grid proxy should support filtering a node by certification type.
f.Status = []string{statusUP}
f.AvailableFor = &twinID
if r.FarmId != 0 {
f.FarmIDs = []uint64{uint64(r.FarmId)}
f.Healthy = &trueVal
if r.FarmID != 0 {
f.FarmIDs = []uint64{uint64(r.FarmID)}
}
if r.Capacity.HRU != 0 {
f.FreeHRU = &r.Capacity.HRU
Expand Down

0 comments on commit b7078f7

Please sign in to comment.