【发布时间】:2021-03-15 17:04:32
【问题描述】:
我们有一个要求,如果管道中的任何活动失败,那么它不应该妨碍其余的活动,并且应该继续进行其余的活动
{
"name": "pipeline1",
"properties": {
"description": "pipeline1",
"activities": [
{
"name": "PipelineName Lookup",
"type": "Lookup",
"dependsOn": [],
"policy": {
"timeout": "7.00:00:00",
"retry": 0,
"retryIntervalInSeconds": 30,
"secureOutput": false,
"secureInput": false
},
"userProperties": [],
"typeProperties": {
"source": {
"type": "AzureSqlSource",
"sqlReaderQuery": {
"value": "select cast(1 as bit)",
"type": "Expression"
},
"queryTimeout": "02:00:00",
"partitionOption": "None"
},
"dataset": {
"referenceName": "AzureSqlTable1",
"type": "DatasetReference"
}
}
},
{
"name": "If Condition1",
"type": "IfCondition",
"dependsOn": [
{
"activity": "PipelineName Lookup",
"dependencyConditions": [
"Completed"
]
}
],
"userProperties": [],
"typeProperties": {
"expression": {
"value": "@equals(activity('PipelineName Lookup').output,True)",
"type": "Expression"
},
"ifFalseActivities": [
{
"name": "Lookup1_copy1",
"type": "Lookup",
"dependsOn": [],
"policy": {
"timeout": "7.00:00:00",
"retry": 0,
"retryIntervalInSeconds": 30,
"secureOutput": false,
"secureInput": false
},
"userProperties": [],
"typeProperties": {
"source": {
"type": "AzureSqlSource",
"sqlReaderQuery": "Select 1",
"queryTimeout": "02:00:00",
"partitionOption": "None"
},
"dataset": {
"referenceName": "AzureSqlTable3",
"type": "DatasetReference"
}
}
}
],
"ifTrueActivities": [
{
"name": "Lookup1",
"type": "Lookup",
"dependsOn": [],
"policy": {
"timeout": "7.00:00:00",
"retry": 0,
"retryIntervalInSeconds": 30,
"secureOutput": false,
"secureInput": false
},
"userProperties": [],
"typeProperties": {
"source": {
"type": "AzureSqlSource",
"sqlReaderQuery": "Select 1",
"queryTimeout": "02:00:00",
"partitionOption": "None"
},
"dataset": {
"referenceName": "AzureSqlTable3",
"type": "DatasetReference"
}
}
}
]
}
}
],
"annotations": []
}
}
我正在使用上面的代码,但我认为这不符合我的要求。我们实际上正在寻找的是一种设计,如果任何活动失败,那么它应该跳过失败的活动并继续进行剩余的活动。我会请求一些帮助
【问题讨论】:
标签: azure azure-data-factory azure-data-factory-2