Moves jupyter extension to both bonobo.contrib.jupyter (for the jupyter widget) and to bonobo.plugins (for the executor-side plugin).

This commit is contained in:
Romain Dorgueil
2017-11-12 09:08:05 +01:00
parent 4bea3f7dad
commit d1481fbfe8
42 changed files with 183 additions and 128 deletions

View File

@ -8,6 +8,7 @@ from bonobo.constants import BEGIN, END
from bonobo.execution.strategies.base import Strategy
from bonobo.util import get_name
logger = logging.getLogger(__name__)
class ExecutorStrategy(Strategy):
"""
@ -30,8 +31,7 @@ class ExecutorStrategy(Strategy):
try:
context.start(self.get_starter(executor, futures))
except:
logging.getLogger(__name__
).warning('KeyboardInterrupt received. Trying to terminate the nodes gracefully.')
logger.critical('Exception caught while starting execution context.', exc_info=sys.exc_info())
while context.alive:
try: