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

Adding AWSBatch JobExists and JobExecutionComplete waiter #1307

Closed
wants to merge 4 commits into from

Conversation

hugoprudente
Copy link

Adding the JobExists and JobExecutionComplete to manipulate AWS Bach jobs easily using boto3

Usage:

JobExists:

import boto3
client = boto3.client('batch')
waiter = client.get_waiter('job_exists')

print(waiter.wait(jobs=['JOB_ID']))

JobExecutionComplete:

import boto3
client = boto3.client('batch')
waiter = client.get_waiter('job_execution_complete')

print(waiter.wait(jobs=['JOB_ID']))

@codecov-io
Copy link

codecov-io commented Nov 6, 2017

Codecov Report

❗ No coverage uploaded for pull request base (develop@7aacea5). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop    #1307   +/-   ##
==========================================
  Coverage           ?   92.54%           
==========================================
  Files              ?       53           
  Lines              ?     9958           
  Branches           ?        0           
==========================================
  Hits               ?     9216           
  Misses             ?      742           
  Partials           ?        0

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7aacea5...55435e3. Read the comment docs.

@hugoprudente
Copy link
Author

Interesting.

This file was not changed from the latest commit and I have rebased and there is no difference that explains the above Delta.

@stealthycoin stealthycoin added enhancement This issue requests an improvement to a current feature. large labels Dec 5, 2017
@hugoprudente
Copy link
Author

Any news on it? it's already 5 months.

@heyalexchoi
Copy link

bump

@johnchenghk01
Copy link

Any news?

@Raphtor
Copy link

Raphtor commented Oct 24, 2018

Bump

@lohmuller
Copy link

+1

@sdanbury
Copy link

What do we need to do to get this in please? Looks like checks have passed, etc.

@quazzuk
Copy link

quazzuk commented Jun 4, 2019

This would be really useful, why has nobody merged yet?!

@dazza-codes
Copy link

dazza-codes commented Aug 15, 2019

Airflow AWS Batch Operator tries to use this, but it's not available yet, right?

The wide use of Airflow means that the AWS Batch API could get hit more frequently than necessary without this feature?

The retry frequency and the max-attempts should be surfaced as parameters on the methods rather than hard-coded, right?

@hugoprudente
Copy link
Author

Ensuring that the CI is still cool to merge so one day this get's to the mainline.

@AlJohri
Copy link

AlJohri commented Nov 14, 2019

bumping this PR. can we get this merged?

@m4ce
Copy link

m4ce commented Feb 7, 2020

+1

@dazza-codes
Copy link

According to https://github.com/boto/botocore/blob/develop/CONTRIBUTING.rst#contributing-code, this PR should be considered and merged. In apache/airflow#6811 I was able to confirm that these waiters can work OK, including moto unit-tests that work. If this is pending because it needs unit tests, please see that Airflow PR for examples.

@kyleknap kyleknap removed the large label Feb 27, 2020
@cariaso
Copy link

cariaso commented Jun 3, 2020

+1 many people have asked for the merge, and it seems all checks and concerns have been addressed.

@hugoprudente
Copy link
Author

Happy Birthday PR!!! You successfully completed 2 years in the waiting queue and had only 1 Rebase :) So proud of you!

@stobrien89
Copy link

Hi all,

Thanks for the request and our apologies for the lack of attention to this. We are now submitting requests for paginators and waiters upstream so that all AWS SDKs benefit from a consistent implementation. I will pass on the request for these waiters to the service team. We will also update the guidance in the contributing guide to better reflect this policy. I've added an issue to track this here:

aws/aws-sdk#84

Thanks again for bringing it to our attention!

@stobrien89 stobrien89 closed this May 28, 2021
@hugoprudente
Copy link
Author

hugoprudente commented Aug 12, 2021

That's is really sad in 2 years you guys have changed the policy and found a way to not merge the code that was ready.

Now the new aws-sdk will take more 2 years to have a simple waiter...

@cariaso
Copy link

cariaso commented Aug 11, 2023

2 years ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue requests an improvement to a current feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet