Home | History | Annotate | Download | only in scheduler

Lines Matching full:drone

22     """The drone is non-sshable."""
29 * allowed_users: set of usernames allowed to use this drone. if None,
30 any user can use this drone.
33 """Instantiate an abstract drone.
48 # If drone supports server-side packaging. The property support_ssp will
65 """Gets the capacity used by this drone
68 direct comparisons, so that a 0/10 drone is considered less heavily
69 loaded than a 0/2 drone.
89 raise ValueError('Drone cannot execute calls without a host.')
108 subject = 'Warning from drone %s' % self.hostname
115 """Returns the calls queued against this drone.
117 @return: A list of calls queued against the drone.
158 """Check if the drone supports server-side packaging with container.
160 @return: True if the drone supports server-side packaging with container
163 raise ValueError('Can not determine if drone supports server-side '
167 # TODO(crbug.com/471316): We need a better way to check if drone
185 # Local drone raises AutotestHostRunError, while remote drone
187 logging.exception('Drone %s does not support server-side '
220 def send_file_to(self, drone, source_path, destination_path,
222 if drone.hostname == self.hostname:
226 self.queue_call('send_file_to', drone.hostname, source_path,
237 logging.error('Drone %s is unpingable, kicking out', hostname)
250 def send_file_to(self, drone, source_path, destination_path,
252 if drone.hostname == self.hostname:
255 elif isinstance(drone, _LocalDrone):
256 drone.queue_call('get_file_from', self.hostname, source_path,
259 self.queue_call('send_file_to', drone.hostname, source_path,
265 Use this factory method to get drone objects.