Fix is_shutdown check when running in executor
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
2.0.1
|
||||
=====
|
||||
May 28, 2014
|
||||
|
||||
Bug Fixes
|
||||
---------
|
||||
* Fix check for Cluster.is_shutdown in in @run_in_executor
|
||||
decorator
|
||||
|
||||
2.0.0
|
||||
=====
|
||||
May 28, 2014
|
||||
|
||||
@@ -130,7 +130,7 @@ def run_in_executor(f):
|
||||
@wraps(f)
|
||||
def new_f(self, *args, **kwargs):
|
||||
|
||||
if self._is_shutdown:
|
||||
if self.is_shutdown:
|
||||
return
|
||||
try:
|
||||
future = self.executor.submit(f, self, *args, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user