Repository navigation
Narrow exception handling in Glue job run fallback scan - #74082
Open
AshleyImmanuel wants to merge 2 commits into
Open
AshleyImmanuel wants to merge 2 commits into
AshleyImmanuel wants to merge 2 commits into
Conversation
- Cap pagination loop in _find_job_run_id_by_task_uuid at 100 pages to prevent infinite loops. - Narrow exception catching from broad Exception to botocore.exceptions.ClientError in _find_previous_job_run. - Change log levels from warning to exception. - Add IAM permission documentation to glue.rst.
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
|
SameerMesiah97
left a comment
Contributor
There was a problem hiding this comment.
I have left some comments.
AshleyImmanuel
force-pushed
the
fix-glue-fallback-71489
branch
from
October 4, 2026 08:33
9252fa7 to
5f71b8c
Compare
Keep while True for the task-UUID pagination scan since the natural NextToken-based termination already handles exit. Narrowing except Exception to except ClientError prevents non-AWS errors from being silently swallowed. closes: apache#71489
AshleyImmanuel
force-pushed
the
fix-glue-fallback-71489
branch
from
October 4, 2026 09:00
5f71b8c to
6c0652f
Compare
Author
|
Thanks for the review! I've updated the PR based on your feedback:
Drafted-by: Antigravity; reviewed by @AshleyImmanuel before posting |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix infinite loop in GlueJobOperator on job run failure
This caps the _find_job_run_id_by_task_uuid retry loop at 100 iterations to prevent infinite hanging when Glue fails. It also narrows exception handling to ClientError to prevent suppressing non-AWS exceptions.
closes: #71489
Was generative AI tooling used to co-author this PR?
Generated-by: Antigravity following the guidelines