You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove airflow.utils.session references in task-sdk #54710
This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.
We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.
Activity
airflow.utilsand move DAG definition items to Task SDK #51671aayushbisen commentedon Aug 21, 2025
Hey @amoghrajesh I would like to work on this issue.
potiuk commentedon Aug 21, 2025
Feel free.
aayushbisen commentedon Aug 22, 2025
Where should the session utility be moved from the current folder? I am thinking like
aayushbisen commentedon Aug 26, 2025
Existing use of session util
The
_run_task()helper function was creating its own database session using:This created an unwanted dependency on airflow core utilities from within the task-sdk.
Proposed Solution
Refactored the session management to reuse the existing session from the parent
test()method instead of creating a new one:session=Noneparameter to_run_task()from airflow.utils.session import create_sessiontest()methodBefore:
After:
@amoghrajesh let me know if this looks okay
airflow.utilsand move DAG definition items to Task SDK #51671potiuk commentedon Mar 2, 2026
@aayushbisen We are unassigning you from this issue as part of our updated assignment policy.
This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.
We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.
amoghrajesh commentedon Jun 15, 2026
Wasn't committed for Airflow 3.3, moving to Airflow 3.4 as best effort work.