From 8d0f241eadb25af46a0473e36496214c6767094b Mon Sep 17 00:00:00 2001 From: Joshua Hesketh Date: Wed, 20 Nov 2013 15:07:25 +1100 Subject: [PATCH] Remove old thread code Change-Id: I8aaf92d6fe3ad21853fb21d11c98d889d54953d5 --- turbo_hipster/task_plugins/gate_real_db_upgrade/task.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/turbo_hipster/task_plugins/gate_real_db_upgrade/task.py b/turbo_hipster/task_plugins/gate_real_db_upgrade/task.py index a9f9e4b..4855309 100644 --- a/turbo_hipster/task_plugins/gate_real_db_upgrade/task.py +++ b/turbo_hipster/task_plugins/gate_real_db_upgrade/task.py @@ -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()