英文:
Azure data factory - Concurrence problem in the child pipeline
问题
我有一个父管道和子管道。父管道在foreach活动中触发子管道。数组中总共有6个项目,所以foreach触发子管道6次。我通过取消勾选顺序复选框来使foreach触发子管道并行。我还为子管道提供了6个并发。目前,6个子管道的实例同时运行并在同一时间结束。我希望子管道并行运行,但希望每个实例延迟30或40秒开始,或以30-40秒的差异结束。我有一个下一个活动来检查标志。
我在子管道的末尾添加了延迟,但等待时间确切地在6个实例的同一时间结束。我还尝试添加设置计数器并增加计数器,但由于管道的两个实例在同一时间结束,计数器两次初始化为相同的值。
英文:
i have a parent and child pipelines. Parent pipeline triggers the child pipeline inside the foreach activity. I have totally 6 items in the array so foreach triggers the child pipeline 6 times. I made foreach to trigger child pipeline parallel by unchecking the sequential check box. I have also have given 6 concurrence to the child pipeline. Currently 6 instances of the child pipeline is running at the same and ends at the same time. I want the child pipeline run parallel but i want start each instance by 30 or 40 secs delay or end by 30-40 secs difference. I have next activity which check the flag.
I added the delay at the end of the child pipeline but the wait exactly ends on the same time for 6 instances. I also tried adding set counter and increase the counter but two times counters are intialized with the same value as the 2 instances of the pipeline ends at the same time.
答案1
得分: 0
你可以使用 rand
函数来生成指定范围内的随机数,并将该数字用于等待活动中,以便在子流程的执行中创建间隔。
英文:
You many use rand
function to generate random number in between range and use that number in wait activity so that you will have gap in execution of child pipelines.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论