Skip to content

Fix Cloudwatch remote logging crash API server if ResourceNotFoundException#68781

Open
jason810496 wants to merge 1 commit into
apache:mainfrom
jason810496:fix/cloudwatch/dont-crash-api-server-if-resource-not-found
Open

Fix Cloudwatch remote logging crash API server if ResourceNotFoundException#68781
jason810496 wants to merge 1 commit into
apache:mainfrom
jason810496:fix/cloudwatch/dont-crash-api-server-if-resource-not-found

Conversation

@jason810496

@jason810496 jason810496 commented Jun 20, 2026

Copy link
Copy Markdown
Member

Why

While trying to setup cloudwatch remote logging in #68709 in order to persist the logs in real time. I caught another error that if API server encounter ResourceNotFoundException error from cloudwatch remote logging setup, it will raise internal error with 500 status code instead of showing verbose hints for user on Airflow UI.

What

Capture the exception and return user-facing error message as CloudWatchLogEvent compatible format so that it could show on the Airflow UI properly.

Verification

shot_nofix shot_withfix

@jason810496 jason810496 requested a review from o-nikolas as a code owner June 20, 2026 06:26
@jason810496 jason810496 self-assigned this Jun 20, 2026
@jason810496 jason810496 requested a review from ferruzzi June 20, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant