Skip to content

Commit fc1c0ca

Browse files
committed
Merge changes from develop
1 parent 764c956 commit fc1c0ca

File tree

1 file changed

+103
-1
lines changed

1 file changed

+103
-1
lines changed

openapi/workflow_execution_service.openapi.yaml

Lines changed: 103 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,85 @@ paths:
385385
schema:
386386
$ref: '#/components/schemas/ErrorResponse'
387387
deprecated: false
388+
'/runs/{run_id}/tasks':
389+
get:
390+
tags:
391+
- Workflow Runs
392+
summary: ListTasks
393+
description: >-
394+
This endpoint provides a paginated list of tasks that were executed as part of a given
395+
workflow run. Task ordering should be the same as what would be returned in a
396+
`RunLog` response body.
397+
operationId: ListTasks
398+
parameters:
399+
- name: run_id
400+
in: path
401+
description: ''
402+
required: true
403+
style: simple
404+
schema:
405+
type: string
406+
- name: page_size
407+
in: query
408+
description: >-
409+
OPTIONAL
410+
The preferred number of task logs to return in a page.
411+
If not provided, the implementation should use a default page size.
412+
The implementation must not return more items
413+
than `page_size`, but it may return fewer. Clients should
414+
not assume that if fewer than `page_size` items are
415+
returned that all items have been returned. The
416+
availability of additional pages is indicated by the value
417+
of `next_page_token` in the response.
418+
style: form
419+
explode: true
420+
schema:
421+
type: integer
422+
format: int64
423+
- name: page_token
424+
in: query
425+
description: >-
426+
OPTIONAL
427+
Token to use to indicate where to start getting results. If unspecified, return the first
428+
page of results.
429+
style: form
430+
explode: true
431+
schema:
432+
type: string
433+
434+
responses:
435+
200:
436+
description: ''
437+
headers: {}
438+
content:
439+
application/json:
440+
schema:
441+
$ref: '#/components/schemas/TaskListResponse'
442+
401:
443+
description: The request is unauthorized.
444+
content:
445+
application/json:
446+
schema:
447+
$ref: '#/components/schemas/ErrorResponse'
448+
403:
449+
description: The requester is not authorized to perform this action.
450+
content:
451+
application/json:
452+
schema:
453+
$ref: '#/components/schemas/ErrorResponse'
454+
404:
455+
description: The requested workflow run wasn't found.
456+
content:
457+
application/json:
458+
schema:
459+
$ref: '#/components/schemas/ErrorResponse'
460+
500:
461+
description: An unexpected error occurred.
462+
content:
463+
application/json:
464+
schema:
465+
$ref: '#/components/schemas/ErrorResponse'
466+
deprecated: false
388467
'/runs/{run_id}/cancel':
389468
post:
390469
tags:
@@ -596,11 +675,19 @@ components:
596675
$ref: '#/components/schemas/State'
597676
run_log:
598677
$ref: '#/components/schemas/Log'
678+
task_logs_url:
679+
type: string
680+
description: A reference to the complete url which may be used to obtain a paginated list of task logs for this workflow
599681
task_logs:
600682
type: array
683+
deprecated: true
684+
required: false
601685
items:
602686
$ref: '#/components/schemas/Log'
603-
description: The logs, and other key info like timing and exit code, for each step in the workflow run.
687+
description: >-
688+
The logs, and other key info like timing and exit code, for each step in the workflow run.
689+
This field is deprecated and the `task_logs_url` should be used to retrieve a paginated list
690+
of steps from the workflow run
604691
outputs:
605692
type: object
606693
description: The outputs from the workflow run.
@@ -657,6 +744,21 @@ components:
657744
type: string
658745
description: an array of one or more acceptable types for the `workflow_type`
659746
description: Available workflow types supported by a given instance of the service.
747+
TaskListResponse:
748+
title: TaskListResponse
749+
type: object
750+
properties:
751+
task_logs:
752+
type: array
753+
items:
754+
$ref: '#/components/schemas/Log'
755+
description: The logs, and other key info like timing and exit code, for each step in the workflow run.
756+
next_page_token:
757+
type: string
758+
description: >-
759+
A token which may be supplied as `page_token` in workflow run task list request to get the next page
760+
of results. An empty string indicates there are no more items to return.
761+
description: The service will return a TaskListResponse when receiving a successful TaskListRequest.
660762
RunListResponse:
661763
title: RunListResponse
662764
type: object

0 commit comments

Comments
 (0)