Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,10 @@ class DAGRunsBatchBody(StrictBaseModel):
duration_lt: float | None = None

conf_contains: str | None = None


class BulkDagRunBody(StrictBaseModel):
Comment thread
Pei-Cheng-Yu marked this conversation as resolved.
"""Request body for bulk delete dag runs."""

dag_id: str
dag_run_id: str
Original file line number Diff line number Diff line change
Expand Up @@ -1889,67 +1889,13 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/upstreamAssetEvents:
get:
tags:
- DagRun
summary: Get Upstream Asset Events
description: If dag run is asset-triggered, return the asset events that triggered
it.
operationId: get_upstream_asset_events
security:
- OAuth2PasswordBearer: []
- HTTPBearer: []
parameters:
- name: dag_id
in: path
required: true
schema:
type: string
title: Dag Id
- name: dag_run_id
in: path
required: true
schema:
type: string
title: Dag Run Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/AssetEventCollectionResponse'
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPExceptionResponse'
description: Unauthorized
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPExceptionResponse'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPExceptionResponse'
description: Not Found
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/clear:
post:
/api/v2/dags/{dag_id}/dagRuns:
patch:
tags:
- DagRun
summary: Clear Dag Run
operationId: clear_dag_run
summary: Bulk Dag Runs
description: Run bulk operations on DAG runs; only delete is implemented.
operationId: bulk_dag_runs
security:
- OAuth2PasswordBearer: []
- HTTPBearer: []
Expand All @@ -1960,28 +1906,19 @@ paths:
schema:
type: string
title: Dag Id
- name: dag_run_id
in: path
required: true
schema:
type: string
title: Dag Run Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DAGRunClearBody'
$ref: '#/components/schemas/BulkBody_BulkDagRunBody_'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/TaskInstanceCollectionResponse'
- $ref: '#/components/schemas/DAGRunResponse'
title: Response Clear Dag Run
$ref: '#/components/schemas/BulkResponse'
'401':
content:
application/json:
Expand All @@ -1994,19 +1931,12 @@ paths:
schema:
$ref: '#/components/schemas/HTTPExceptionResponse'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPExceptionResponse'
description: Not Found
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/dags/{dag_id}/dagRuns:
get:
tags:
- DagRun
Expand Down Expand Up @@ -2462,6 +2392,123 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/upstreamAssetEvents:
get:
tags:
- DagRun
summary: Get Upstream Asset Events
description: If dag run is asset-triggered, return the asset events that triggered
it.
operationId: get_upstream_asset_events
security:
- OAuth2PasswordBearer: []
- HTTPBearer: []
parameters:
- name: dag_id
in: path
required: true
schema:
type: string
title: Dag Id
- name: dag_run_id
in: path
required: true
schema:
type: string
title: Dag Run Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/AssetEventCollectionResponse'
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPExceptionResponse'
description: Unauthorized
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPExceptionResponse'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPExceptionResponse'
description: Not Found
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/clear:
post:
tags:
- DagRun
summary: Clear Dag Run
operationId: clear_dag_run
security:
- OAuth2PasswordBearer: []
- HTTPBearer: []
parameters:
- name: dag_id
in: path
required: true
schema:
type: string
title: Dag Id
- name: dag_run_id
in: path
required: true
schema:
type: string
title: Dag Run Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DAGRunClearBody'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
anyOf:
- $ref: '#/components/schemas/TaskInstanceCollectionResponse'
- $ref: '#/components/schemas/DAGRunResponse'
title: Response Clear Dag Run
'401':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPExceptionResponse'
description: Unauthorized
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPExceptionResponse'
description: Forbidden
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPExceptionResponse'
description: Not Found
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v2/dags/{dag_id}/dagRuns/{dag_run_id}/wait:
get:
tags:
Expand Down Expand Up @@ -9369,6 +9416,21 @@ components:

This structure helps users understand which key actions succeeded and which
failed.'
BulkBody_BulkDagRunBody_:
properties:
actions:
items:
oneOf:
- $ref: '#/components/schemas/BulkCreateAction_BulkDagRunBody_'
- $ref: '#/components/schemas/BulkUpdateAction_BulkDagRunBody_'
- $ref: '#/components/schemas/BulkDeleteAction_BulkDagRunBody_'
type: array
title: Actions
additionalProperties: false
type: object
required:
- actions
title: BulkBody[BulkDagRunBody]
BulkBody_BulkTaskInstanceBody_:
properties:
actions:
Expand Down Expand Up @@ -9429,6 +9491,28 @@ components:
required:
- actions
title: BulkBody[VariableBody]
BulkCreateAction_BulkDagRunBody_:
properties:
action:
type: string
const: create
title: Action
description: The action to be performed on the entities.
entities:
items:
$ref: '#/components/schemas/BulkDagRunBody'
type: array
title: Entities
description: A list of entities to be created.
action_on_existence:
$ref: '#/components/schemas/BulkActionOnExistence'
default: fail
additionalProperties: false
type: object
required:
- action
- entities
title: BulkCreateAction[BulkDagRunBody]
BulkCreateAction_BulkTaskInstanceBody_:
properties:
action:
Expand Down Expand Up @@ -9517,6 +9601,45 @@ components:
- action
- entities
title: BulkCreateAction[VariableBody]
BulkDagRunBody:
properties:
dag_id:
type: string
title: Dag Id
dag_run_id:
type: string
title: Dag Run Id
additionalProperties: false
type: object
required:
- dag_id
- dag_run_id
title: BulkDagRunBody
description: Request body for bulk delete dag runs.
BulkDeleteAction_BulkDagRunBody_:
properties:
action:
type: string
const: delete
title: Action
description: The action to be performed on the entities.
entities:
items:
anyOf:
- type: string
- $ref: '#/components/schemas/BulkDagRunBody'
type: array
title: Entities
description: A list of entity id/key or entity objects to be deleted.
action_on_non_existence:
$ref: '#/components/schemas/BulkActionNotOnExistence'
default: fail
additionalProperties: false
type: object
required:
- action
- entities
title: BulkDeleteAction[BulkDagRunBody]
BulkDeleteAction_BulkTaskInstanceBody_:
properties:
action:
Expand Down Expand Up @@ -9698,6 +9821,38 @@ components:
- task_id
title: BulkTaskInstanceBody
description: Request body for bulk update, and delete task instances.
BulkUpdateAction_BulkDagRunBody_:
properties:
action:
type: string
const: update
title: Action
description: The action to be performed on the entities.
entities:
items:
$ref: '#/components/schemas/BulkDagRunBody'
type: array
title: Entities
description: A list of entities to be updated.
update_mask:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Update Mask
description: A list of field names to update for each entity.Only these
fields will be applied from the request body to the database model.Any
extra fields provided will be ignored.
action_on_non_existence:
$ref: '#/components/schemas/BulkActionNotOnExistence'
default: fail
additionalProperties: false
type: object
required:
- action
- entities
title: BulkUpdateAction[BulkDagRunBody]
BulkUpdateAction_BulkTaskInstanceBody_:
properties:
action:
Expand Down
Loading
Loading