简体   繁体   English

Adfv2 在主管道中引用子管道变量

[英]Adfv2 reference child pipeline variable in master pipeline

I have a pipeline that executes another pipeline in azure data factory v2.我有一个管道在 azure 数据工厂 v2 中执行另一个管道。 In the executed (child) pipeline I assign a value to a variable I want returned in the master pipeline, is this possible?在已执行的(子)管道中,我为要在主管道中返回的变量赋值,这可能吗? Thanks谢谢

Pipelines are independent entities - while you can execute "child" pipelines, there is no functional connection between the two.管道是独立的实体 - 虽然您可以执行“子”管道,但两者之间没有功能连接。 One way around this is to have the child pipeline write the value to some form of intermediate storage (blob storage, a SQL table, etc), and then have the "parent" pipeline read the value after the child pipeline completes.解决此问题的一种方法是让子管道将值写入某种形式的中间存储(blob 存储、SQL 表等),然后让“父”管道在子管道完成后读取该值。 You should also make sure the Execute Pipeline activity has the "Wait on completion" property checked.您还应该确保 Execute Pipeline 活动已选中“等待完成”属性。 If you don't want the value retained in the storage medium, you could have the parent pipeline delete the data once it has processed it.如果您不希望该值保留在存储介质中,您可以让父管道在处理完数据后将其删除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM