code: func (f *ResourceFilter) SetTask(t *api.Task) bool {
  	r := t.Spec.Resources
  	if r == nil || r.Reservations == nil {
  		return false
  	}
  
  	res := r.Reservations
  	if res.NanoCPUs == 0 && res.MemoryBytes == 0 && len(res.Generic) == 0 {
  		return false
  	}
  
  	f.reservations = r.Reservations
  	return true
  }
docs: // SetTask returns true when the filter is enabled for a given task.