)
        assert sla_miss_count == 1
        mock_stats_incr.assert_called_with(
            "sla_missed", tags={"dag_id": "test_sla_miss", "run_id": "test", "task_id": "dummy"}
        )
        
        
        
        
        dag_file_processor.manage_slas(dag=dag, session=session)
    @mock.patch("airflow.dag_processing.processor.Stats.incr")
    def test_dag_file_processor_sla_miss_continue_checking_the_task_instances_after_recording_missing_sla(
        self, mock_stats_incr, dag_maker
    ):
        """
        Test that the dag file processor continue checking subsequent task instances
        even if the preceding task instance misses the sla ahead
        """
        session = settings.Session()
        
        
        now = timezone.utcnow()
        test_start_date = now - datetime.timedelta(days=3)
        with dag_maker(
            dag_id="test_sla_miss",
            default_args={"start_date": test_start_date, "sla": datetime.timedelta(days=1)},
        ) as dag:
            task = EmptyOperator(task_id="dummy")
        dag_maker.create_dagrun(execution_date=test_start_date, state=State.SUCCESS)
        session.merge(TaskInstance(task=task, execution_date=test_start_date, state="success"))