Re: [openstack-dev] [mistral] Displaying wf hierarchy in CLI

2015-09-02 Thread Renat Akhmerov
> On 02 Sep 2015, at 14:56, Lingxian Kong wrote: > > I want to make it clear. Then, what you want to see is dependencies between > workflow executions? or task executions in one workflow? We know that we > could use a separate task or a workflow as a 'task'. Dependencies between workflow exec

Re: [openstack-dev] [mistral] Displaying wf hierarchy in CLI

2015-09-02 Thread Lingxian Kong
Hi, Renat, I want to make it clear. Then, what you want to see is dependencies between workflow executions? or task executions in one workflow? We know that we could use a separate task or a workflow as a 'task'. On Wed, Sep 2, 2015 at 3:33 PM, Renat Akhmerov wrote: > > On 01 Sep 2015, at 22:21

Re: [openstack-dev] [mistral] Displaying wf hierarchy in CLI

2015-09-02 Thread Renat Akhmerov
> On 01 Sep 2015, at 22:21, Lingxian Kong wrote: > > To achieve that, we should record the execution/task-execution relationship > during an execution is running, because we have no such info currently. Well, in DB model we, in fact, have a field pointing to parent task execution id (and henc

Re: [openstack-dev] [mistral] Displaying wf hierarchy in CLI

2015-09-02 Thread Renat Akhmerov
> On 31 Aug 2015, at 23:47, Joshua Harlow wrote: > > Would u guys have any use for the following being split out into its own > library? > > https://github.com/openstack/taskflow/blob/master/taskflow/types/tree.py Do you mean we could move this, for instance, into oslo somewhere? Taskflow it

Re: [openstack-dev] [mistral] Displaying wf hierarchy in CLI

2015-09-01 Thread Lingxian Kong
Hi, Renat, Actually, I have the same idea months ago, but what I thought is to provide task dependencies information in a workflow definition, since as a workflow designer, I have no idea about how my workflow 'looks like', unless I create an execution with that, especially when there are a lot of

Re: [openstack-dev] [mistral] Displaying wf hierarchy in CLI

2015-08-31 Thread Joshua Harlow
Would u guys have any use for the following being split out into its own library? https://github.com/openstack/taskflow/blob/master/taskflow/types/tree.py It already has a pformat method that could be used to do your drawing of the 'tree'... http://docs.openstack.org/developer/taskflow/types

[openstack-dev] [mistral] Displaying wf hierarchy in CLI

2015-08-31 Thread Renat Akhmerov
Team, I’d like to discuss https://blueprints.launchpad.net/mistral/+spec/mistral-execution-origin . To summarize what it’s about: imagine that we have a workflow which calls other workflows and those workflows call some w