WEB(Azure Logic Apps)调用未在Azure数据工厂中以sequance运行 [英] WEB (Azure Logic Apps) calls not running in sequance in Azure Data Factory

查看:84
本文介绍了WEB(Azure Logic Apps)调用未在Azure数据工厂中以sequance运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 

我有一个ADF(Azure数据工厂)看起来像

I have a ADF (Azure Data Factory) that looks like

ALA = Azure逻辑应用

ALA = Azure Logic Apps


  1. 从Blob获取文件和文件夹列表        (活动:
    获取元数据)
  2. 过滤上面的列表并获取文件* .Zip      (活动:
    过滤器)
  3. 逐个循环压缩文件                        (活动:ForEach
  4. 循环开始 
  5.         使用ALA解压缩文件                       (活动:WEB) 
  6.         使用ALA将Zip文件复制到存档    (活动:WEB)
  7.         使用ALA删除Zip文件                 (活动:WEB)
  8. 结束循环
  1. Get List of file and folder from a Blob         (Activity: Get Meta Data)
  2. Filter the above list and get files *.Zip       (Activity: Filter )
  3. Loop zip files one by one                         (Activity: ForEach)
  4. Loop Start 
  5.          Unzip file using ALA                        (Activity: WEB) 
  6.          Copy Zip file to Archive using ALA    (Activity: WEB)
  7.          Delete Zip File using ALA                 (Activity: WEB)
  8. End Loop

所有步骤都链接在一起使用绿色路径

ALL steps are linked together using a GREEN Path

假设我有3个Zip文件,每个需要30秒解压5s才能复制,1s要删除

Assuming I have 3 Zip files and each one takes 30s to unzip 5s to copy and 1s to delete

所以我必须有3个循环 

so I will have to have 3 loops 

loop1 = 30s + 5s + 1s

loop1 = 30s + 5s + 1s

Loops在36s后启动

Loop2 starts after 36s

loop2 = 30s + 5s + 1s

和......

但是我在第一个循环中获得的所有3个WEB调用同时发生绿色PATH没有等到上一步完成之后再去下一个WEB,所以在第一个循环中所有3个web都在前1个中被调用然后它移动到第二个
循环并且发生在1s(再次调用所有3个web同时)它们移动到第3个循环

BUT what I am getting in the first loop all 3 WEB call happen at the same time the green PATH does not wait for the previous step to finish before going to the next WEB, so in the first loop all 3 web get called in the first 1s then it moves to the second loop and that happens in 1s (again calling all 3 web al the same time) them moving to the 3rd loop

我的问题是在循环中所有3个活动同时被调用,他们忽略了绿色路径

My problem is that in the loop all 3 activity gets called at the same time and they ignore the green path

他们没有等待foist WEB( unzip)在移动到下一个WEB(COPY)之前完成等等

they are not waiting for the foist WEB (unzip) to finish before moving to the next WEB (COPY) and so on

感谢您的帮助 Nik

Thanks for the helpNik

真诚的Nik - 请注明回答你的问题的帖子和/或投票支持这些帖子。 http://sqldataside.blogspot.ca/(SQL表格+ PowerShell)

Sincerely Nik -- Please kindly mark the post(s) that answered your question and/or vote for the post(s). http://sqldataside.blogspot.ca/ (SQL Tabular + PowerShell)

推荐答案

Hi Nik,

Hi Nik,

您是否尝试过将活动链接起来以便按顺序执行?来自"绿色PATH"你提到过,我假设你已根据之前活动的成功链接了活动。如果没有,请查看
分支和链接活动:

Have you tried out chaining the activities so that they are executed sequentially? From the "green PATH" that you mentioned, I am assuming you have chained the activities based on success of the previous activity. If not, please have a look at branching and chaining activities :

https://docs.microsoft.com/en-us/azure/data-factory/tutorial- control-flow-portal

https://docs.microsoft.com/en-us/azure/data-factory/tutorial-control-flow-portal

此外,此处报告了类似的问题:

Also, there's a similar issue reported here :

https://stackoverflow.com/questions/52612382/azure- data-factory-select-property-status-succeeded-from-previous-activity

https://stackoverflow.com/questions/52612382/azure-data-factory-select-property-status-succeeded-from-previous-activity

从答案中,您可以了解如何检查上一个活动的状态。

From the answers, you can get an idea of how you can check the status of the previous activity.

请告诉我这是否有帮助,或者我们可以继续进一步探讨。

Let me know if this helps, or we can continue to probe in further.


这篇关于WEB(Azure Logic Apps)调用未在Azure数据工厂中以sequance运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆