From a378c9a556de6ee0aff56cbe8d60998d31e40de8 Mon Sep 17 00:00:00 2001 From: "Alexey Lavrenuke (load testing)" Date: Wed, 11 Sep 2013 16:50:06 +0400 Subject: [PATCH] threads parameter in config --- Tank/Plugins/bfg/plugin.py | 1 + Tank/Plugins/bfg/worker.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Tank/Plugins/bfg/plugin.py b/Tank/Plugins/bfg/plugin.py index 99896d8..28e8844 100644 --- a/Tank/Plugins/bfg/plugin.py +++ b/Tank/Plugins/bfg/plugin.py @@ -55,6 +55,7 @@ class BFGPlugin(AbstractPlugin): self.bfg = BFG( gun=self.gun, instances=self.get_option("instances", '15'), + threads=self.get_option("threads", '10'), stpd_filename=self.stepper_wrapper.stpd, cached_stpd=cached_stpd, ) diff --git a/Tank/Plugins/bfg/worker.py b/Tank/Plugins/bfg/worker.py index 8631f4b..40b36f2 100644 --- a/Tank/Plugins/bfg/worker.py +++ b/Tank/Plugins/bfg/worker.py @@ -11,6 +11,7 @@ class BFG(object): self, gun, instances, + threads, stpd_filename, cached_stpd=False, ): @@ -20,6 +21,7 @@ class BFG(object): self.gun = gun self.stpd_filename = stpd_filename self.instances = int(instances) + self.threads = int(threads) self.results = None self.worker = None self.cached_stpd = cached_stpd @@ -49,6 +51,7 @@ class BFG(object): self.gun, results, stpd_filename=self.stpd_filename, + threads=self.threads, instances=self.instances, cached_stpd=self.cached_stpd, )