Different behavior for DagBag.dagbag_stats.file on Linux vs Windows #45172
Labels
area:core
kind:bug
This is a clearly a bug
needs-triage
label for new issues that we didn't triage yet
Apache Airflow version
2.10.4
If "Other Airflow 2 version" selected, which one?
No response
What happened?
On Windows,
dagbag.dagbag_stats.file
contains an absolute path, whereas on Linux, this field contains a path relative todagbag.dag_folder
.What you think should happen instead?
The behavior should be the same regardless of the OS.
How to reproduce
Run the below on Windows and Linux and compare the results:
Operating System
Win10 + RL9.3
Versions of Apache Airflow Providers
Irrelevant
Deployment
Virtualenv installation
Deployment details
No response
Anything else?
I believe the reason for this difference is that
Doesn't normalize the folder separators, so in the case of
nothing gets replaced. A possible solution for this is applying
Path(raw_path).as_posix()
to all paths involved.Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: