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
Circular dependency issue when trying to locally test DAG #34558
Attempting to test DAG sanity by running dag.test():
if name == 'main':
test_http_sensor().test()
python my_sensor_dag.py
I receive the following error:
ImportError: cannot import name 'Dataset' from partially initialized module 'airflow'
What you think should happen instead
According to what I can figure out in the documentation, it should be possible to run DAG.test() outside the airflow scheduler/executor in order to validate a DAG.
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
This issue has been automatically marked as stale because it has been open for 14 days with no response from the author. It will be closed in next 7 days if no further activity occurs from the issue author.
Activity
boring-cyborg commentedon Sep 22, 2023
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
Taragolis commentedon Sep 22, 2023
Unfortunetly we need a bit more details (full error stack trace) and DAG sample for able to reproduce and understand what going wrong.
github-actions commentedon Oct 9, 2023
This issue has been automatically marked as stale because it has been open for 14 days with no response from the author. It will be closed in next 7 days if no further activity occurs from the issue author.
github-actions commentedon Oct 16, 2023
This issue has been closed because it has not received response from the issue author.