Commit 1b0e126c authored by Jerome Mariette's avatar Jerome Mariette
Browse files

change the graph class by a good one

parent 68444e6e
......@@ -132,7 +132,9 @@ if __name__ == '__main__':
wfmanager.reset_workflow_component(args["workflow_id"], args["component_name"])
elif args["cmd_object"] == "execution_graph":
workflow = wfmanager.get_workflow(args["workflow_id"])
print workflow.get_execution_graph()
gr = workflow.get_execution_graph()
print "nodes: ", gr.nodes()
print "edges: ", gr.edges()
elif args["cmd_object"] == "status":
if args["workflow_id"]:
workflow = wfmanager.get_workflow(args["workflow_id"])
......
......@@ -339,6 +339,7 @@ class JFlowServer (object):
elif kwargs["display"] == "graph":
g = workflow.get_execution_graph()
status = self.jsonify_workflow_status(workflow)
status["nodes"] = g.nodes()
status["edges"] = g.edges()
return status
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment