Remove old thread code

Change-Id: I8aaf92d6fe3ad21853fb21d11c98d889d54953d5
This commit is contained in:
Joshua Hesketh 2013-11-20 15:07:25 +11:00
parent 6eb5fdcd8d
commit 8d0f241ead

View File

@ -308,11 +308,7 @@ class Runner(object):
This can provide a progress bar. """
# Each opportunity we should check if we need to stop
if self.stopped():
self.work_data['result'] = "Failed: Worker interrupted/stopped"
self.job.sendWorkStatus(self.current_step, self.total_steps)
raise Exception('Thread stopped')
elif self.cancelled:
if self.cancelled:
self.work_data['result'] = "Failed: Job cancelled"
self.job.sendWorkStatus(self.current_step, self.total_steps)
self.job.sendWorkFail()