parameters: (self)
return_statement: return [
              h for h in self.mgr.inventory.all_specs() if '_no_schedule' not in h.labels
          ]
docstring: Returns all hosts that do not have _no_schedule label.
  
          Useful for the agent who needs this specific list rather than the
          schedulable_hosts since the agent needs to be deployed on hosts with
          no daemon refresh
docstring_summary: Returns all hosts that do not have _no_schedule label.
docstring_tokens: Returns all hosts that do not have _no_schedule label .
function: def get_non_draining_hosts(self) -> List[HostSpec]:
          """
          Returns all hosts that do not have _no_schedule label.
  
          Useful for the agent who needs this specific list rather than the
          schedulable_hosts since the agent needs to be deployed on hosts with
          no daemon refresh
          """
          return [
              h for h in self.mgr.inventory.all_specs() if '_no_schedule' not in h.labels
          ]
function_tokens: def get_non_draining_hosts ( self ) -> List [ HostSpec ] : return [ h for h in self . mgr . inventory . all_specs ( ) if '_no_schedule' not in h . labels ]