Skip to content

Docs: Create your own batch processor documentation inconsistency #2688

Closed
@erikayao93

Description

@erikayao93

What were you searching in the docs?

While investigating the capabilities of the batch processor in Python for a similar implementation in TypeScript, I found an inconsistency in the description compared to the code example.

The description states that developers should inherit the BasePartialProcessor class, which would require them to implement the abstract methods of prepare, clean, and process_record (or async_process_record).

However, the code example creates a class that inherits the BasePartialBatchProcessor class.

Is this related to an existing documentation section?

https://docs.powertools.aws.dev/lambda/python/2.19.0/utilities/batch/#create-your-own-partial-processor

How can we improve?

There should be clarity on which class developers are meant to inherit from.

If developers should inherit from BasePartialProcessor, the code example should be updated so that the code is usable. This may require other backend updates, as several pieces of functionality in the code example are reliant on capabilities of the BasePartialBatchProcessor class.

Got a suggestion in mind?

No response

Acknowledgment

  • I understand the final update might be different from my proposed suggestion, or refused.

Metadata

Metadata

Labels

batchBatch processing utilitydocumentationImprovements or additions to documentation

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions