ADF在Until活动中提供一个选项,使得在Until活动的内部活动失败时停止在Pipeline中运行。可以使用以下JSON代码将此选项设置为“true”:
{
"name": "Until1",
"type": "Until",
"typeProperties": {
"expression": {
"value": "@equals(activity('Check_file_existence').output.firstRow.exists, false)"
},
"activities": [
{
"name": "Check_file_existence",
"type": "Copy",
"inputs": [
{
"referenceName": "blob_input",
"type": "DatasetReference"
}
],
"outputs": [
{
"referenceName": "blob_output",
"type": "DatasetReference"
}
],
"typeProperties": {
"source": {
"type": "BlobSource"
},
"sink": {
"type": "BlobSink",
"writeBatchSize": 0,
"writeBatchTimeout": "00:00:00"
}
},
"policy": {
"timeout": "00:01:00",
"retry": 0,
"retryIntervalInSeconds": 0
}
}
],
"OuterActivityCannotFailOnInnerActivityFailure": true
}
}