Skip to content

Fix GlueJobOperator deferred waiting #52314

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

Merged
merged 1 commit into from
Jun 27, 2025

Conversation

o-nikolas
Copy link
Contributor

Overview

In #52243 the waiting was moved from custom code within the glue hook to using the aws base waiters when deferring Glue jobs. The Trigger was given inappropriate inputs which caused it to wait for zero attempts, which causes our tests to fail. This change moves to using the common parameters we use for other operators in deferrable with the same defaults as the Trigger has.
Note: previously this Operator used to wait indefinitely for the job to either complete or fail. The default now waits for 75 minutes. The aws base waiter has no ability to wait indefinitely, nor do I think it should, that feels like a bug to me. So I'm considering this slight behaviour change a bug fix of a bug fix.

Testing:

I ran this through our AWS system test and it worked as expected


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

In apache#52243 the waiting was moved from custom code within the glue hook to
using the aws base waiters when deferring Glue jobs. The Trigger was
given inappropriate inputs which caused it to wait for zero attempts,
which causes our tests to fail. This change moves to using the common
parameters we use for other operators in deferrable with the same
defaults as the Trigger has.
Note: previously this Operator used to wait indefinitely for the job to
either complete or fail. The default now waits for 75 minutes. The aws
base waiter has no ability to wait indefinitely, nor do I think it
should, that feels like a bug to me. So I'm considering this slight
behaviour change a bug fix of a bug fix.
@o-nikolas o-nikolas requested a review from eladkal as a code owner June 26, 2025 22:57
@boring-cyborg boring-cyborg bot added area:providers provider:amazon AWS/Amazon - related issues labels Jun 26, 2025
@eladkal eladkal merged commit c16b88a into apache:main Jun 27, 2025
74 checks passed
kyungjunleeme pushed a commit to kyungjunleeme/airflow that referenced this pull request Jun 28, 2025
In apache#52243 the waiting was moved from custom code within the glue hook to
using the aws base waiters when deferring Glue jobs. The Trigger was
given inappropriate inputs which caused it to wait for zero attempts,
which causes our tests to fail. This change moves to using the common
parameters we use for other operators in deferrable with the same
defaults as the Trigger has.
Note: previously this Operator used to wait indefinitely for the job to
either complete or fail. The default now waits for 75 minutes. The aws
base waiter has no ability to wait indefinitely, nor do I think it
should, that feels like a bug to me. So I'm considering this slight
behaviour change a bug fix of a bug fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:amazon AWS/Amazon - related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants