if a worker is DISABLED while processing a task, it shouldn't resume after finishing it
This commit is contained in:
1 parent
e172c2cade
commit
d2c9f510bc
1 file changed
+1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user