File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 41
41
from airflow .exceptions import AirflowException , TaskNotFound
42
42
from airflow .models .base import ID_LEN , Base
43
43
from airflow .models .taskinstance import TaskInstance as TI
44
- from airflow .settings import task_instance_mutation_hook
45
44
from airflow .stats import Stats
46
45
from airflow .ti_deps .dep_context import DepContext
47
46
from airflow .ti_deps .dependencies_states import SCHEDULEABLE_STATES
@@ -633,6 +632,8 @@ def verify_integrity(self, session: Session = None):
633
632
:param session: Sqlalchemy ORM Session
634
633
:type session: Session
635
634
"""
635
+ from airflow .settings import task_instance_mutation_hook
636
+
636
637
dag = self .get_dag ()
637
638
tis = self .get_task_instances (session = session )
638
639
Original file line number Diff line number Diff line change @@ -611,7 +611,7 @@ def test_already_added_task_instances_can_be_ignored(self):
611
611
assert State .NONE == first_ti .state
612
612
613
613
@parameterized .expand ([(state ,) for state in State .task_states ])
614
- @mock .patch ('airflow.models.dagrun .task_instance_mutation_hook' )
614
+ @mock .patch ('airflow.settings .task_instance_mutation_hook' )
615
615
def test_task_instance_mutation_hook (self , state , mock_hook ):
616
616
def mutate_task_instance (task_instance ):
617
617
if task_instance .queue == 'queue1' :
You can’t perform that action at this time.
0 commit comments