controlm/ctm-python-client

How to connect two jobs in different sub-folders

Closed this issue · 7 comments

How to use workflow.chain to connect two jobs in different sub-folders

@jfink5

Please help me with this requirement

jfink5 commented

Add the jobs and then use the connect method on the workflow with full path to job name.

workflow.connect("root/sub1/job1", "root/sub2/job2")

Thanks @jfink5

Your sub-folder jobs connect suggestion worked

Is there a way to connect two jobs related to two different folders?

jfink5 commented

If you are talking about 2 different root folders, then I'm not sure. If its possible, then I think workflow.connect is the way to do it.

Okay is there a way to explore more on workflow.connect to connect two jobs related to two different root folders?

jfink5 commented

You may use workflow.connect to create dependencies between jobs in two different roots. Just get the pathing accurate.

workflow.connect(srcpath="jfi-ex1/subfolder1/jfi-1", destpath="jfi-ex3/jfi-3")

Its working

Thanks @jfink5