Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bbovenzi committed May 20, 2022
1 parent 2ef2051 commit 59c7678
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions airflow/www/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def encode_ti(dag_run: DagRun, task, session: Session) -> Optional[Dict[str, Any
TaskInstance.dag_id == task.dag_id,
TaskInstance.run_id == dag_run.run_id,
TaskInstance.task_id == task.task_id,
# Only get normal task instances or the first mapped task
TaskInstance.map_index <= 0,
)
.first()
Expand Down

0 comments on commit 59c7678

Please sign in to comment.