예제 #1
0
 def runParallel(self):
     os.environ['RACKTEST_MINIMUM_NICE_FOR_RACKATTACK'] = "1.0"
     jobs = []
     for scenario in self._scenarios:
         for instance in self._instances:
             jobs.append(dict(callback=self._runScenario, scenario=scenario, instance=instance))
     concurrently.run(jobs, threads=self._args.parallel)
예제 #2
0
 def runParallel(self):
     os.environ['RACKTEST_MINIMUM_NICE_FOR_RACKATTACK'] = "1.0"
     jobs = []
     for scenario in self._scenarios:
         for instance in self._instances:
             jobs.append(
                 dict(callback=self._runScenario,
                      scenario=scenario,
                      instance=instance))
     concurrently.run(jobs, threads=self._args.parallel)
 def runOnEveryHost(self, callback, description):
     concurrently.run(
         [dict(callback=callback, args=(name, )) for name in self._nodes])
 def runOnEveryHost(self, callback, description):
     concurrently.run([
         dict(callback=callback, args=(name,))
         for name in self._nodes])