yandex / yandex-tank

Load and performance benchmark tool
Other
2.46k stars 279 forks source link

Pandora plugin tries to use deleted attribute 'process_start_time' and fails #822

Closed nettorta closed 4 years ago

nettorta commented 4 years ago

Hi folks,

Pandora plugin has a Console widget, that tries to use 'process_start_time' plugin attribute.

But the actual attribute was deleted by the 6th of September 2019 here

The result of such an action is an exception:

2019-12-03 14:03:00,440 [WARNING] yandextank.plugins.Console.plugin plugin.py:89 Exception inside render: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/yandextank/plugins/Console/plugin.py", line 87, in is_test_finished self.__console_view = self.screen.render_screen().encode('utf-8') File "/usr/local/lib/python2.7/dist-packages/yandextank/plugins/Console/screen.py", line 411, in render_screen widget_out = widget.render(self).strip() File "/usr/local/lib/python2.7/dist-packages/yandextank/plugins/Pandora/plugin.py", line 300, in render dur_seconds = int(time.time()) - int(self.owner.process_start_time) AttributeError: 'Plugin' object has no attribute 'process_start_time'

Can you fix that, please?