[v3-3-test] Route SQLAlchemyError through global exception handler (#69267) - #70236
Conversation
…69267) * Route SQLAlchemyError through global exception handler * Replace manual traceback with logging * Update airflow-core/src/airflow/api_fastapi/common/exceptions.py Co-authored-by: Jason(Zhe-You) Liu <68415893+jason810496@users.noreply.github.com> * Add test for ti_run and include traceback when expose_stacktrace=True * Add test for ti_run and include traceback when expose_stacktrace=True * fix referenced before assignment problems * Handle execution API database errors consistently * Handle execution API database errors consistently * Refactor duplicated database error handling into helper * fix code format * Trigger CI rerun * Move database error response handling into handler class --------- (cherry picked from commit 7c03dab) Co-authored-by: fat-catTW <124506982+fat-catTW@users.noreply.github.com> Co-authored-by: Jason(Zhe-You) Liu <68415893+jason810496@users.noreply.github.com>
When it has no 'user impact' and it's a 'refactor' it's better to backport anyway to reduce the drift with 'main'. Otherwise the accumulation of such refactoring can bring a lot of conflicts in the future. And since v3-3-test branch is fresh, this will last for a while. Also this can also fix cryptic error messages (SQLAlchemy exception) for parts of the code where it was not handled/unexpected, so it can only help to backport. |
|
Hi maintainer, this PR was merged without a milestone set.
|
…69267) (#70236) * Route SQLAlchemyError through global exception handler * Replace manual traceback with logging * Update airflow-core/src/airflow/api_fastapi/common/exceptions.py * Add test for ti_run and include traceback when expose_stacktrace=True * Add test for ti_run and include traceback when expose_stacktrace=True * fix referenced before assignment problems * Handle execution API database errors consistently * Handle execution API database errors consistently * Refactor duplicated database error handling into helper * fix code format * Trigger CI rerun * Move database error response handling into handler class --------- (cherry picked from commit 7c03dab) Co-authored-by: fat-catTW <124506982+fat-catTW@users.noreply.github.com> Co-authored-by: Jason(Zhe-You) Liu <68415893+jason810496@users.noreply.github.com>
Route SQLAlchemyError through global exception handler
Replace manual traceback with logging
Update airflow-core/src/airflow/api_fastapi/common/exceptions.py
Co-authored-by: Jason(Zhe-You) Liu 68415893+jason810496@users.noreply.github.com
Add test for ti_run and include traceback when expose_stacktrace=True
Add test for ti_run and include traceback when expose_stacktrace=True
fix referenced before assignment problems
Handle execution API database errors consistently
Handle execution API database errors consistently
Refactor duplicated database error handling into helper
fix code format
Trigger CI rerun
Move database error response handling into handler class
(cherry picked from commit 7c03dab)
Co-authored-by: fat-catTW 124506982+fat-catTW@users.noreply.github.com
Co-authored-by: Jason(Zhe-You) Liu 68415893+jason810496@users.noreply.github.com