Skip to content
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

GlueJobOperator: add option to wait for cleanup before returning job status #43688

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

eladkal
Copy link
Contributor

@eladkal eladkal commented Nov 5, 2024

This changes to solve a bug around the case of concurrency=1. In that scenario Glue returns final state before actually cleaning up the resources. This leads to a problem we can have more than 1 concurrent job in Glue.
To avoid this and according to AWS recommendation adding the option to wait (5-10) seconds before returning the job status

Not sure how to test this one (if we need testing for this at all?).
It just adds sleep before returning the final status

@eladkal eladkal requested review from ferruzzi and vincbeck November 5, 2024 11:48
@eladkal eladkal requested a review from o-nikolas as a code owner November 5, 2024 11:48
@boring-cyborg boring-cyborg bot added area:providers provider:amazon AWS/Amazon - related issues labels Nov 5, 2024
@eladkal eladkal merged commit 74fc280 into apache:main Nov 5, 2024
58 checks passed
@eladkal eladkal deleted the glue branch November 5, 2024 16:08
ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 2024
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.

3 participants