mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-06 02:15:22 +00:00
commit
cbbd9a7dc6
@ -32,7 +32,7 @@ from ..plugins.Telegraf import Plugin as TelegrafPlugin
|
|||||||
class Job(object):
|
class Job(object):
|
||||||
def __init__(self, name, description, task, version, config_copy, monitoring_plugin, aggregator_plugin, tank,
|
def __init__(self, name, description, task, version, config_copy, monitoring_plugin, aggregator_plugin, tank,
|
||||||
generator_plugin=None):
|
generator_plugin=None):
|
||||||
# type: (str, str, str, str, str, MonitoringPlugin, AggregatorPlugin, GeneratorPlugin) -> Job
|
# type: (unicode, unicode, unicode, unicode, unicode, MonitoringPlugin, AggregatorPlugin, GeneratorPlugin) -> Job
|
||||||
self.name = name
|
self.name = name
|
||||||
self.description = description
|
self.description = description
|
||||||
self.task = task
|
self.task = task
|
||||||
@ -205,10 +205,10 @@ class TankCore(object):
|
|||||||
self.log.warning("Load generator not found:", exc_info=True)
|
self.log.warning("Load generator not found:", exc_info=True)
|
||||||
gen = None
|
gen = None
|
||||||
|
|
||||||
self.job = Job(name=str(self.get_option(self.SECTION_META, "job_name", 'none')),
|
self.job = Job(name=self.get_option(self.SECTION_META, "job_name", 'none').decode('utf8'),
|
||||||
description=str(self.get_option(self.SECTION_META, "job_dsc", '')),
|
description=self.get_option(self.SECTION_META, "job_dsc", '').decode('utf8'),
|
||||||
task=str(self.get_option(self.SECTION_META, 'task', 'dir')),
|
task=self.get_option(self.SECTION_META, 'task', 'dir').decode('utf8'),
|
||||||
version=str(self.get_option(self.SECTION_META, 'ver', '')),
|
version=self.get_option(self.SECTION_META, 'ver', '').decode('utf8'),
|
||||||
config_copy=self.get_option(self.SECTION_META, 'copy_config_to', 'config_copy'),
|
config_copy=self.get_option(self.SECTION_META, 'copy_config_to', 'config_copy'),
|
||||||
monitoring_plugin=mon,
|
monitoring_plugin=mon,
|
||||||
aggregator_plugin=aggregator,
|
aggregator_plugin=aggregator,
|
||||||
|
Loading…
Reference in New Issue
Block a user