Skip to content

Commit

Permalink
[Data Factory] Add Chainingtrigger (#7076)
Browse files Browse the repository at this point in the history
* Add Chaining Trigger

* Add Chaining Trigger

* Fix Issues

* Update review comments
  • Loading branch information
haricr authored and raych1 committed Aug 30, 2019
1 parent 33e4ec6 commit e315499
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4505,6 +4505,14 @@
},
"readOnly": true
},
"runDimensions": {
"description": "Run dimensions emitted by Pipeline run.",
"type": "object",
"additionalProperties": {
"type": "string"
},
"readOnly": true
},
"invokedBy": {
"description": "Entity that started the pipeline run.",
"$ref": "#/definitions/PipelineRunInvokedBy",
Expand Down Expand Up @@ -4744,6 +4752,22 @@
"type": "string"
},
"readOnly": true
},
"runDimension": {
"description": "Run dimension for which trigger was fired.",
"type": "object",
"additionalProperties": {
"type": "string"
},
"readOnly": true
},
"dependencyStatus": {
"description": "Status of the upstream pipelines.",
"type": "object",
"additionalProperties": {
"type": "object"
},
"readOnly": true
}
},
"additionalProperties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@
"type": "object"
}
},
"runDimensions": {
"description": "Dimensions emitted by Pipeline.",
"type": "object",
"additionalProperties": {
"type": "object",
"description": "Type: string (or Expression with resultType string)."
}
},
"folder": {
"description": "The folder that this Pipeline is in. If not specified, Pipeline will appear at the root level.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,46 @@
"required": [
"typeProperties"
]
},
"ChainingTrigger": {
"description": "Trigger that allows the referenced pipeline to depend on other pipeline runs based on runDimension Name/Value pairs. Upstream pipelines should declare the same runDimension Name and their runs should have the values for those runDimensions. The referenced pipeline run would be triggered if the values for the runDimension match for all upstream pipeline runs.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Trigger"
}
],
"properties": {
"pipeline": {
"$ref": "../datafactory.json#/definitions/TriggerPipelineReference",
"description": "Pipeline for which runs are created when all upstream pipelines complete successfully."
},
"typeProperties": {
"description": "Chaining Trigger properties.",
"x-ms-client-flatten": true,
"properties": {
"dependsOn": {
"type": "array",
"items": {
"$ref": "../datafactory.json#/definitions/PipelineReference"
},
"description": "Upstream Pipelines."
},
"runDimension": {
"description": "Run Dimension property that needs to be emitted by upstream pipelines.",
"type": "string"
}
},
"required": [
"runDimension",
"dependsOn"
]
}
},
"required": [
"pipeline",
"typeProperties"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@
"status": "Succeeded",
"message": "",
"lastUpdated": "2018-06-16T00:38:12.7314495Z",
"annotations": []
"annotations": [],
"runDimension": {
"JobId": "79c1cc52-265f-41a5-9553-be65e736fbd3"
}
},
{
"runId": "16ac5348-ff82-4f95-a80d-638c1d47b721",
Expand All @@ -63,7 +66,10 @@
"status": "Cancelled",
"message": "",
"lastUpdated": "2018-06-16T00:39:51.216097Z",
"annotations": []
"annotations": [],
"runDimension": {
"JobId": "84a3c493-0628-4b44-852f-ef5b3a11bdab"
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,21 @@
"parameters": {
"OutputBlobNameList": {
"type": "Array"
},
"JobId": {
"type": "String"
}
},
"variables": {
"TestVariableArray": {
"type": "Array"
}
},
"runDimensions": {
"JobId": {
"value": "@pipeline().parameters.JobId",
"type": "Expression"
}
}
}
},
Expand Down Expand Up @@ -140,12 +149,21 @@
"parameters": {
"OutputBlobNameList": {
"type": "Array"
},
"JobId": {
"type": "String"
}
},
"variables": {
"TestVariableArray": {
"type": "Array"
}
},
"runDimensions": {
"JobId": {
"value": "@pipeline().parameters.JobId",
"type": "Expression"
}
}
},
"etag": "0a0069d4-0000-0000-0000-5b245bd50000"
Expand Down

0 comments on commit e315499

Please sign in to comment.