Skip to content

Conversation

@amoghrajesh
Copy link
Contributor

Part of #51671

Refactor timeout functionality by moving TimeoutPosix class to the dagbag module where it's primarily used, and remove windows timeout support along the way as Airflow 3.0 no longer supports windows due to fork() usage.

Since this is the final set of usage in core, providers is handled by: #54183 and the class was moved to task SDK in #54089. I am deprecating this from utils and asking dag authors to use it from sdk.

Testing

  • Updated existing timeout tests to use new import path
  • Verified DAG import timeout functionality still works
  • Confirmed backward compatibility with timeout alias

Back compat:

root@8f4a0f87f9f0:/opt/airflow# python
Python 3.10.18 (tags/v3.10.18:88663ef, Jul 22 2025, 04:10:51) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from airflow.utils.timeout import timeout
/opt/airflow/airflow-core/src/airflow/configuration.py:814 DeprecationWarning: The grid_view_sorting_order option in [webserver] has been moved to the grid_view_sorting_order option in [api] - the old setting has been used, but please update your config.
/opt/airflow/airflow-core/src/airflow/configuration.py:815 DeprecationWarning: The grid_view_sorting_order option in [webserver] has been moved to the grid_view_sorting_order option in [api] - the old setting has been used, but please update your config.
<stdin>:1 DeprecationWarning: The `airflow.utils.timeout.timeout` attribute is deprecated. Please use `'airflow.sdk.execution_time.timeout.timeout'`.

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@amoghrajesh amoghrajesh requested a review from ashb August 8, 2025 07:08
@amoghrajesh amoghrajesh merged commit 9ed5a59 into apache:main Aug 13, 2025
57 checks passed
@amoghrajesh amoghrajesh deleted the nuke-timeout-module branch August 13, 2025 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants