diff --git a/bonobo/execution/contexts/graph.py b/bonobo/execution/contexts/graph.py index b2362db..2828592 100644 --- a/bonobo/execution/contexts/graph.py +++ b/bonobo/execution/contexts/graph.py @@ -148,3 +148,11 @@ class GraphExecutionContext(BaseContext): def unregister_plugins(self): for plugin_context in self.plugins: plugin_context.unregister() + + + @property + def xstatus(self): + """ + UNIX-like exit status, only coherent if the context has stopped. + """ + return max(node.xstatus for node in self.nodes)