Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly show the error message in dagfactory.py #128

Open
Skobnikoff opened this issue Mar 1, 2022 · 0 comments
Open

Explicitly show the error message in dagfactory.py #128

Skobnikoff opened this issue Mar 1, 2022 · 0 comments

Comments

@Skobnikoff
Copy link

Skobnikoff commented Mar 1, 2022

Quite often I get the DAG compilation error and I have no clue what's wrong because the error message does not help at all:

Traceback (most recent call last):
  File "airflow/dags/main.py", line 14, in <module>
    dag_factory.generate_dags(globals())
  File "/usr/local/lib/python3.7/site-packages/dagfactory/dagfactory.py", line 126, in generate_dags
    dags: Dict[str, Any] = self.build_dags()
  File "/usr/local/lib/python3.7/site-packages/dagfactory/dagfactory.py", line 103, in build_dags
    ) from err
Exception: Failed to generate dag my_DAG. verify config is correct

I created a branch and tried to push it and submit a PR but got the access denied. No pb. Just please explicit the error message here. It could be as simple as this:
raise Exception("Failed to generate dag {dag_name}: {err}")

Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant