-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AIRFLOW-1017] get_task_instance shouldn't throw exception when no TI
get_task_instance should return None instead of throwing exception in the case where dagrun does not have the task instance. Closes #2178 from aoen/ddavydov-- one_instead_of_first_for_dagrun
- Loading branch information
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b2b9587
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When can this issue occur? Ie when does a dag run not have a task instance for a certain task? We verify dag runs against their structure so not getting the task instance is a violation of that structure.
b2b9587
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can happen if e.g. someone creates a dagrun via ui. It's a good safety measure anyways. We were seeing this crash our scheduler after upgrading to rc 4.