Check partially configured transformations that are function based (aka transformation factories) on execution context setup.

wip: make sure all api is exported, raise an error when a function based transformation factory is (incorrectly) used as a transformation.
This commit is contained in:
Romain Dorgueil
2017-12-01 07:43:14 +01:00
parent db54ff41ef
commit 9e0834b061
5 changed files with 36 additions and 29 deletions

View File

@ -50,8 +50,11 @@ class ExecutorStrategy(Strategy):
def starter(node):
@functools.wraps(node)
def _runner():
with node:
node.loop()
try:
with node:
node.loop()
except:
logging.getLogger(__name__).critical('Critical error in threadpool node starter.', exc_info=sys.exc_info())
try:
futures.append(executor.submit(_runner))