Skip to content

Commit

Permalink
Add try_number and map_index as params for log event endpoint (#40845)
Browse files Browse the repository at this point in the history
Forgot to add these in #40739
  • Loading branch information
dstandish authored Jul 17, 2024
1 parent 6e3eedb commit 6fdc398
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions airflow/api_connexion/endpoints/event_log_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def get_event_logs(
dag_id: str | None = None,
task_id: str | None = None,
run_id: str | None = None,
map_index: int | None = None,
try_number: int | None = None,
owner: str | None = None,
event: str | None = None,
excluded_events: str | None = None,
Expand Down Expand Up @@ -90,6 +92,10 @@ def get_event_logs(
query = query.where(Log.task_id == task_id)
if run_id:
query = query.where(Log.run_id == run_id)
if map_index:
query = query.where(Log.map_index == map_index)
if try_number:
query = query.where(Log.try_number == try_number)
if owner:
query = query.where(Log.owner == owner)
if event:
Expand Down

0 comments on commit 6fdc398

Please sign in to comment.