-
Notifications
You must be signed in to change notification settings - Fork 16.3k
AIRFLOW-4748 Print stacktrace for dagbag process exceptions #5386
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
Conversation
|
One of the test suites passed, some others failed, I can't tell if the failures are connected to this change or not. |
Co-Authored-By: Chao-Han Tsai <milton0825@gmail.com>
Co-Authored-By: Chao-Han Tsai <milton0825@gmail.com>
|
Failing unit tests fixed. Searching for Thanks for the suggestion @milton0825 |
|
Do you fancy a bit of a deeper change here? Rather than just making import errors a list of strings, seei if we could make it a list of dicts of |
|
@ashb That is an intriguing idea, but I don't have the bandwidth of a broader fix right now. This is one of a few Airflow PRs I'm working as a result our 1.10.3 upgrade last week. |
|
@ashb Are you ok with this more limited change? |
|
@dossett Could you provide a screenshot of what this error looks like currently? I have a feeling we may need to add |
|
@ashb The way we use Airflow I don't actually see this in the UI. We have a service to submit the DAGs which calls into Airflow's code to parse the dag first (I don't recall the exact mechanism), so I only see this in an error log. |
|
@ashb I stand corrected, I saw it the next time I opened Airflow, lol. |
|
Hmmmmm - that is rather large and long. Adding the CSS rule I suggested would make it take up about 3 screens. Is that error any use as it stands to you? |
|
@ashb No, this particular error isn't that useful, but other errors have been especially very generic python error messages. It does seem clunky in the UI like this, I admit, but finding it in a log file is super valuable. |
|
@ashb @dossett I think this is a useful change but the current implementation perhaps adds a bit too much clutter. I could see situations where you have five of these errors taking an inconvenient amount of space. Perhaps it would be better if the stack trace details were hidden behind some kind of expandable details panel? |
|
@pgagnon Yeah, that's what I was thinking with #5386 (comment) -- I just worry that this is going to take up too much space on the screen. |
|
Also nit: The PR title is missing brackets to encapsulate the JIRA id. I'm not sure if this is an actual requirement but it would be more consistent. |
|
Going to close this PR for now as the messages it prints will likely be too long and will make a mess of the UI. Sorry. It'll be a nice feature though |

Make sure you have checked all steps below.
Jira
Description
Tests
Commits
Code Quality
flake8