chore(tasks): add swagger for canceling task runs

pull/14009/head
docmerlin (j. Emrys Landivar) 2019-05-29 10:25:08 -05:00
parent f904c92b5a
commit 15bacd4e60
1 changed files with 28 additions and 0 deletions

View File

@ -4440,6 +4440,34 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/Error"
delete:
operationId: DeleteTasksIDRunsID
tags:
- Tasks
summary: Cancel a single running task
parameters:
- $ref: '#/components/parameters/TraceSpan'
- in: path
name: taskID
schema:
type: string
required: true
description: task ID
- in: path
name: runID
schema:
type: string
required: true
description: run ID
responses:
'204':
description: delete has been accepted
default:
description: unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
'/tasks/{taskID}/runs/{runID}/retry':
post:
operationId: PostTasksIDRunsIDRetry