コード例 #1
0
ファイル: thread.py プロジェクト: rohitkadam19/robottelo
 def run(self):
     time.sleep(5)
     self.logger.debug('Start timing in thread {0}'.format(self.thread_id))
     for idx, uuid in enumerate(self.sublist):
         if uuid != '':
             self.logger.debug(
                 'deletion attempt # {0} in thread {1}-uuid: {2}'
                 .format(idx, self.thread_id, uuid))
             # conduct one request by the id
             time_point = Candlepin.single_delete(uuid, self.thread_id)
             self.time_result_dict[self.thread_name].append(time_point)