-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Cancel pipeline run api #1782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cancel pipeline run api #1782
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1770,6 +1770,48 @@ | |
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/cancelpipelinerun/{runId}": { | ||
| "post": { | ||
| "operationId": "Factories_CancelPipelineRun", | ||
| "x-ms-examples": { | ||
| "Factories_CancelPipelineRun": { | ||
| "$ref": "./examples/Factories_CancelPipelineRun.json" | ||
| } | ||
| }, | ||
| "description": "Cancel a pipeline run by its run ID.", | ||
| "tags": [ | ||
| "pipelineruns" | ||
| ], | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/subscriptionId" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/resourceGroupName" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/factoryName" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/runId" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/api-version" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When the user gets an
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok means it is fully cancelled.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @milantomic6 could you add to description. |
||
| "description": "Pipeline run has been canceled successfully. " | ||
| }, | ||
| "default": { | ||
| "description": "An error response received from the Azure Data Factory service.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ErrorResponse" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/triggers": { | ||
| "get": { | ||
| "tags": [ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| { | ||
| "parameters": { | ||
| "subscriptionId": "12345678-1234-1234-12345678abc", | ||
| "resourceGroupName": "exampleResourceGroup", | ||
| "factoryName": "exampleFactoryName", | ||
| "runId": "39692ed9-c722-4d33-b8e1-1f4a9deac57f", | ||
| "api-version": "2017-09-01-preview" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "headers": { | ||
| "Date": "Mon, 02 Oct 2017 17:27:33 GMT", | ||
| "x-ms-request-id": "fd3867ea-c65c-470d-a17b-d83c8864cf90", | ||
| "X-Content-Type-Options": "nosniff", | ||
| "x-ms-ratelimit-remaining-subscription-writes": "1113", | ||
| "x-ms-correlation-request-id": "d0b45db5-c155-4991-95d9-22655c72c986" | ||
| }, | ||
| "body": null | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if the pipeline run has already finished?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If pipeline run is in terminal state we return bad request.