amoghrajesh commented on code in PR #35746: URL: https://github.com/apache/airflow/pull/35746#discussion_r1398670287
########## tests/conftest.py: ########## @@ -1075,7 +1075,14 @@ def clear_lru_cache(): from airflow.utils.entry_points import _get_grouped_entry_points ExecutorLoader.validate_database_executor_compatibility.cache_clear() - _get_grouped_entry_points.cache_clear() + try: + _get_grouped_entry_points.cache_clear() + try: + yield + finally: + _get_grouped_entry_points.cache_clear() + finally: + ExecutorLoader.validate_database_executor_compatibility.cache_clear() Review Comment: Super interesting pattern and the reasoning for it :D -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org