)
        
        last_finish_time = freezed_base_time - timedelta(seconds=10)
        manager._file_stats = {
            "file_1.py": DagFileStat(1, 0, last_finish_time, timedelta(seconds=1.0), 1),
        }
        with time_machine.travel(freezed_base_time):
            manager.set_file_paths(dag_files)
            assert manager._file_path_queue == collections.deque()
            
            manager.prepare_file_path_queue()
            assert manager._file_path_queue == collections.deque()
        
        
        file_1_new_mtime = freezed_base_time - timedelta(seconds=5)
        file_1_new_mtime_ts = file_1_new_mtime.timestamp()
        with time_machine.travel(freezed_base_time):
            manager.set_file_paths(dag_files)
            assert manager._file_path_queue == collections.deque()
            
            mock_getmtime.side_effect = [file_1_new_mtime_ts]
            manager.prepare_file_path_queue()
            
            assert manager._file_path_queue == collections.deque(["file_1.py"])
            assert last_finish_time < file_1_new_mtime
            assert (
                manager._file_process_interval
                > (freezed_base_time - manager.get_last_finish_time("file_1.py")).total_seconds()
            )
    def test_deactivate_stale_dags(self):