-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added task_log changes to openapi spec and removed flag to hide task …
…from RunLog
- Loading branch information
Showing
6 changed files
with
116 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
title: TaskListResponse | ||
type: object | ||
properties: | ||
task_logs: | ||
type: array | ||
items: | ||
$ref: './Log.yaml' | ||
description: The logs, and other key info like timing and exit code, for each step in the workflow run. | ||
next_page_token: | ||
type: string | ||
description: >- | ||
A token which may be supplied as `page_token` in workflow run task list request to get the next page | ||
of results. An empty string indicates there are no more items to return. | ||
description: The service will return a TaskListResponse when receiving a successful TaskListRequest. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
post: | ||
tags: | ||
- Workflow Runs | ||
summary: ListTasks | ||
description: >- | ||
This endpoint provides a paginated list of tasks that were executed as part of a given | ||
workflow run. Task ordering should be the same as what would be returned in a | ||
`RunLog` response body. | ||
operationId: ListTasks | ||
parameters: | ||
- name: run_id | ||
in: path | ||
description: '' | ||
required: true | ||
style: simple | ||
schema: | ||
type: string | ||
- name: page_size | ||
in: query | ||
description: >- | ||
OPTIONAL | ||
The preferred number of task logs to return in a page. | ||
If not provided, the implementation should use a default page size. | ||
The implementation must not return more items | ||
than `page_size`, but it may return fewer. Clients should | ||
not assume that if fewer than `page_size` items are | ||
returned that all items have been returned. The | ||
availability of additional pages is indicated by the value | ||
of `next_page_token` in the response. | ||
style: form | ||
explode: true | ||
schema: | ||
type: integer | ||
format: int64 | ||
- name: page_token | ||
in: query | ||
description: >- | ||
OPTIONAL | ||
Token to use to indicate where to start getting results. If unspecified, return the first | ||
page of results. | ||
style: form | ||
explode: true | ||
schema: | ||
type: string | ||
responses: | ||
200: | ||
description: '' | ||
headers: {} | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/TaskListResponse' | ||
401: | ||
description: The request is unauthorized. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/ErrorResponse' | ||
403: | ||
description: The requester is not authorized to perform this action. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/ErrorResponse' | ||
404: | ||
description: The requested workflow run wasn't found. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/ErrorResponse' | ||
500: | ||
description: An unexpected error occurred. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/ErrorResponse' | ||
deprecated: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters