ability for waiter.wait to return last response on success

Open
#2,913 10 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

  • #2914 by @thehesiod — closed without merging

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
api, backend

Research direction

Read botocore/waiter.py around line 370 and trace the success path. Done means waiter.wait returns the final response when the waiter completes successfully, avoiding another request for callers such as Athena.

Written by the indexing model from the issue text.

Description

feature-request p2 waiter
Describe the feature

right now when the last item is a success it just returns None: https://github.com/boto/botocore/blob/develop/botocore/waiter.py#L370.

Use Case

This means that if you want to grab statistics, like from an athena call you have to call the method again to be able to get it.

Proposed Solution

To avoid another round trip the waiter should return the last response

Other Information

No response

Acknowledgements
  • I may be able to implement this feature request
  • This feature might incur a breaking change
SDK version used

1.29.119

Environment details (OS name and version, etc.)

OSX 13.3.1

Dominant language
Python
Stars
1.7k
Forks
1.2k
Avg merge
3d 7h
Merged PRs (30d)
15

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boto/botocore

All issues in boto/botocore

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.