if a worker is DISABLED while processing a task, it shouldn't resume after finishing it

This commit is contained in:
niphlod committed 2014-06-15 17:40:08 +02:00
1 parent e172c2cade
commit d2c9f510bc
1 file changed
+1
+1
View File
@@ -657,6 +657,7 @@ class Scheduler(MetaScheduler):
self.w_stats.status = RUNNING self.w_stats.status = RUNNING
self.w_stats.total += 1 self.w_stats.total += 1
self.wrapped_report_task(task, self.async(task)) self.wrapped_report_task(task, self.async(task))
if not self.w_stats.status == DISABLED:
self.w_stats.status = ACTIVE self.w_stats.status = ACTIVE
else: else:
self.w_stats.empty_runs += 1 self.w_stats.empty_runs += 1