- if self.ping('video.house'):
- logger.info('Found video.house')
- pool.append(
- RemoteWorkerRecord(
- username = 'scott',
- machine = 'video.house',
- weight = 1,
- count = 4,
- ),
- )
- if self.ping('gorilla.house'):
- logger.info('Found gorilla.house')
- pool.append(
- RemoteWorkerRecord(
- username = 'scott',
- machine = 'gorilla.house',
- weight = 2,
- count = 4,
- ),
- )