@@ -398,6 +398,85 @@ paths:
398398 schema :
399399 $ref : ' #/components/schemas/ErrorResponse'
400400 deprecated : false
401+ ' /runs/{run_id}/tasks ' :
402+ get :
403+ tags :
404+ - Workflow Runs
405+ summary : ListTasks
406+ description : >-
407+ This endpoint provides a paginated list of tasks that were executed as part of a given
408+ workflow run. Task ordering should be the same as what would be returned in a
409+ `RunLog` response body.
410+ operationId : ListTasks
411+ parameters :
412+ - name : run_id
413+ in : path
414+ description : ' '
415+ required : true
416+ style : simple
417+ schema :
418+ type : string
419+ - name : page_size
420+ in : query
421+ description : >-
422+ OPTIONAL
423+ The preferred number of task logs to return in a page.
424+ If not provided, the implementation should use a default page size.
425+ The implementation must not return more items
426+ than `page_size`, but it may return fewer. Clients should
427+ not assume that if fewer than `page_size` items are
428+ returned that all items have been returned. The
429+ availability of additional pages is indicated by the value
430+ of `next_page_token` in the response.
431+ style : form
432+ explode : true
433+ schema :
434+ type : integer
435+ format : int64
436+ - name : page_token
437+ in : query
438+ description : >-
439+ OPTIONAL
440+ Token to use to indicate where to start getting results. If unspecified, return the first
441+ page of results.
442+ style : form
443+ explode : true
444+ schema :
445+ type : string
446+
447+ responses :
448+ 200 :
449+ description : ' '
450+ headers : {}
451+ content :
452+ application/json :
453+ schema :
454+ $ref : ' #/components/schemas/TaskListResponse'
455+ 401 :
456+ description : The request is unauthorized.
457+ content :
458+ application/json :
459+ schema :
460+ $ref : ' #/components/schemas/ErrorResponse'
461+ 403 :
462+ description : The requester is not authorized to perform this action.
463+ content :
464+ application/json :
465+ schema :
466+ $ref : ' #/components/schemas/ErrorResponse'
467+ 404 :
468+ description : The requested workflow run wasn't found.
469+ content :
470+ application/json :
471+ schema :
472+ $ref : ' #/components/schemas/ErrorResponse'
473+ 500 :
474+ description : An unexpected error occurred.
475+ content :
476+ application/json :
477+ schema :
478+ $ref : ' #/components/schemas/ErrorResponse'
479+ deprecated : false
401480 ' /runs/{run_id}/cancel ' :
402481 post :
403482 tags :
@@ -632,11 +711,20 @@ components:
632711 $ref : ' #/components/schemas/State'
633712 run_log :
634713 $ref : ' #/components/schemas/Log'
714+ task_logs_url :
715+ type : string
716+ description : A reference to the complete url which may be used to obtain a paginated list of task logs for this workflow
635717 task_logs :
636718 type : array
719+ deprecated : true
720+ nullable : true
637721 items :
638722 $ref : ' #/components/schemas/Log'
639- description : The logs, and other key info like timing and exit code, for each step in the workflow run.
723+ description : >-
724+ The logs, and other key info like timing and exit code, for each step in the workflow run.
725+ This field is deprecated and the `task_logs_url` should be used to retrieve a paginated list
726+ of steps from the workflow run. This field will be removed in the next major version of the
727+ specification (2.0.0)
640728 outputs :
641729 type : object
642730 description : The outputs from the workflow run.
@@ -693,6 +781,21 @@ components:
693781 type : string
694782 description : an array of one or more acceptable types for the `workflow_type`
695783 description : Available workflow types supported by a given instance of the service.
784+ TaskListResponse :
785+ title : TaskListResponse
786+ type : object
787+ properties :
788+ task_logs :
789+ type : array
790+ items :
791+ $ref : ' #/components/schemas/Log'
792+ description : The logs, and other key info like timing and exit code, for each step in the workflow run.
793+ next_page_token :
794+ type : string
795+ description : >-
796+ A token which may be supplied as `page_token` in workflow run task list request to get the next page
797+ of results. An empty string indicates there are no more items to return.
798+ description : The service will return a TaskListResponse when receiving a successful TaskListRequest.
696799 WorkflowEngineVersion :
697800 title : WorkflowEngineVersion
698801 type : object
0 commit comments