I think for 99% of users this file is empty or tiny, so it works well as it is for most of our users.
If you want to reorganize the file you can use python imports ``` from mymodule import task_policy ``` On 6 August 2022 01:13:14 BST, Ping Zhang <[email protected]> wrote: >Hi all, > >Currently, those infra hooks ><https://github.com/apache/airflow/blob/8070a781b6292ce0795ceed6f36217dd61023dad/airflow/settings.py#L139-L234> >(e.g. task_policy, dag_policy etc) live in the settings.py, making it >bloated. > >I am proposing to move those infra hooks to its own file. As for the file >name, how about `airflow_infra_hooks.py`? Any suggestions are welcome. > >Please let me know your thoughts. > >Thanks, > >Ping
