Skip to content

Commit

Permalink
Merge pull request #575 from fomars/master
Browse files Browse the repository at this point in the history
hotfix: Unicode job name & description
  • Loading branch information
fomars committed Apr 26, 2018
2 parents 985f7d9 + 8ee625e commit 24e7331
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions yandextank/core/tankcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def plugins_end_test(self, retcode):
retcode = plugin.end_test(retcode)
logger.debug("RC after: %s", retcode)
except Exception: # FIXME too broad exception clause
logger.error("Failed finishing plugin %s: %s", plugin, exc_info=True)
logger.error("Failed finishing plugin %s", plugin, exc_info=True)
if not retcode:
retcode = 1
return retcode
Expand All @@ -311,7 +311,7 @@ def plugins_post_process(self, retcode):
retcode = plugin.post_process(retcode)
logger.debug("RC after: %s", retcode)
except Exception: # FIXME too broad exception clause
logger.error("Failed post-processing plugin %s: %s", plugin, exc_info=True)
logger.error("Failed post-processing plugin %s", plugin, exc_info=True)
if not retcode:
retcode = 1
self.__collect_artifacts()
Expand Down
10 changes: 6 additions & 4 deletions yandextank/plugins/DataUploader/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,10 @@ def post_process(self, rc):
self.monitoring_queue.put(None)
self.data_queue.put(None)
logger.info("Waiting for sender threads to join.")
self.monitoring.join()
self.upload.join()
if self.monitoring.is_alive():
self.monitoring.join()
if self.upload.is_alive():
self.upload.join()
self.finished = True
try:
self.lp_job.close(rc)
Expand Down Expand Up @@ -573,8 +575,8 @@ def __get_lp_job(self):
token=self.get_option('upload_token'),
person=self.__get_operator(),
task=self.task,
name=self.get_option('job_name', 'none').decode('utf8'),
description=self.get_option('job_dsc').decode('utf8'),
name=self.get_option('job_name', 'none'),
description=self.get_option('job_dsc'),
tank=self.core.job.tank,
notify_list=self.get_option("notify"),
load_scheme=loadscheme,
Expand Down

0 comments on commit 24e7331

Please sign in to comment.