From c449f8601e11df2d6c78e72cf8191d433fc185fe Mon Sep 17 00:00:00 2001 From: Romain Dorgueil Date: Sun, 22 Jul 2018 11:20:08 +0200 Subject: [PATCH] implements xstatus in graph context, based on node xstatus. --- bonobo/execution/contexts/graph.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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)