Skip to content

fix: PythonVirtualenvOperator crashes if any python_callable function is defined in the same source as DAG - #37165

Merged
potiuk merged 9 commits into
apache:mainfrom
rawwar:kalyan/35529-pyvenv-op-pickle-bug
Feb 7, 2024
Merged

potiuk merged 9 commits into
apache:mainfrom
rawwar:kalyan/35529-pyvenv-op-pickle-bug

Conversation

@rawwar

@rawwar rawwar commented Feb 4, 2024

Copy link
Copy Markdown
Contributor

closes: #35529

Added a check to see if the python_callable's module name is same as the modified unique path. This helps us to identify that the python callable is in the same module as the dag.

Signed-off-by: kalyanr <[email protected]>
Comment thread airflow/utils/file.py Resolved
Comment thread airflow/operators/python.py Resolved
Signed-off-by: kalyanr <[email protected]>
Comment thread airflow/utils/file.py Resolved
@rawwar
rawwar marked this pull request as draft February 4, 2024 15:01
@potiuk

potiuk commented Feb 6, 2024

Copy link
Copy Markdown
Member

No specific comments for now, this is the direction that I think makes sense.

@rawwar
rawwar marked this pull request as ready for review February 7, 2024 01:02
@rawwar

rawwar commented Feb 7, 2024

Copy link
Copy Markdown
Contributor Author

@potiuk , Please consider reviewing the PR. Thanks

@eladkal eladkal added this to the Airflow 2.8.2 milestone Feb 7, 2024
@eladkal eladkal added the type:bug-fix Changelog: Bug Fixes label Feb 7, 2024
@potiuk

potiuk commented Feb 7, 2024

Copy link
Copy Markdown
Member

Nice

@potiuk
potiuk merged commit e75522b into apache:main Feb 7, 2024
jedcunningham pushed a commit that referenced this pull request Feb 9, 2024
… is defined in the same source as DAG (#37165)

---------

Signed-off-by: kalyanr <[email protected]>
(cherry picked from commit e75522b)
potiuk pushed a commit that referenced this pull request Feb 13, 2024
… is defined in the same source as DAG (#37165)

---------

Signed-off-by: kalyanr <[email protected]>
(cherry picked from commit e75522b)
ephraimbuddy pushed a commit that referenced this pull request Feb 22, 2024
… is defined in the same source as DAG (#37165)

---------

Signed-off-by: kalyanr <[email protected]>
(cherry picked from commit e75522b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PythonVirtualenvOperator crashes if any python_callable function is defined in the same source as DAG

3 participants