Skip to content
Merged
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
9 changes: 8 additions & 1 deletion airflow-ctl/src/airflowctl/api/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,8 @@ def list(
logical_date_gte: datetime.datetime | None = None,
logical_date_lte: datetime.datetime | None = None,
order_by: str | None = None,
*,
suppress_error_log: bool = False,
) -> DAGRunCollectionResponse | ServerResponseError:
"""
List dag runs (at most `limit` results).
Expand All @@ -645,6 +647,7 @@ def list(
logical_date_gte: Filter dag runs with a logical date greater than or equal to this value.
logical_date_lte: Filter dag runs with a logical date less than or equal to this value.
order_by: Order the results by the specified field.
suppress_error_log: Skip client-side error logging, for callers handling the error themselves.
"""
# Use "~" for all DAGs if dag_id is not specified
if not dag_id:
Expand All @@ -661,7 +664,11 @@ def list(
)

try:
self.response = self.client.get(f"/dags/{dag_id}/dagRuns", params=params)
self.response = self.client.get(
f"/dags/{dag_id}/dagRuns",
params=params,
extensions={"airflowctl_suppress_error_log": suppress_error_log},
)
return DAGRunCollectionResponse.model_validate_json(self.response.content)
except ServerResponseError as e:
raise e
Expand Down