Skip to content

refactor(batch_processing): mark batch_processor and async_batch_processor as deprecated #4910

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
Aug 8, 2024
Merged

refactor(batch_processing): mark batch_processor and async_batch_processor as deprecated #4910

merged 1 commit into from
Aug 8, 2024

Conversation

leandrodamascena
Copy link
Contributor

Issue number: #4908

Summary

Changes

As 2.12.0, We added two new functions to work with Batch Processing:process_partial_response and async_process_partial_response and we kept batch_processor and async_batch_processor decorators for backwards compatibility.

Those two new functions reduces boilerplate, smaller memory/CPU cycles, and it makes it less error prone - e.g., decorators required an additional return.

In Powertools V3 we are marking batch_processor and async_batch_processor as deprecated as will remove in V4.

User experience

Both functions are marked as deprecated

image

Checklist

If your change doesn't seem to apply, please leave them unchecked.

Is this a breaking change?

RFC issue number:

Checklist:

  • Migration process documented
  • Implement warnings (if it can live side by side)

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@leandrodamascena leandrodamascena requested a review from a team August 7, 2024 21:50
@boring-cyborg boring-cyborg bot added documentation Improvements or additions to documentation tests labels Aug 7, 2024
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 7, 2024
@leandrodamascena leandrodamascena requested a review from sthulb August 7, 2024 21:51
@github-actions github-actions bot added enhancement and removed documentation Improvements or additions to documentation labels Aug 7, 2024
@leandrodamascena
Copy link
Contributor Author

I need your review here @sthulb.

Copy link

sonarqubecloud bot commented Aug 7, 2024

@sthulb sthulb merged commit 2d59b7a into aws-powertools:v3 Aug 8, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement size/M Denotes a PR that changes 30-99 lines, ignoring generated files. tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tech debt: Deprecate batch_processor and async_batch_processor in Batch Processing utility
2 participants