Skip to content

Define batching impl #63

Description

@ManiMozaffar

Decouple batching and performing the request, by using a new class called Batcher

def get_batches(self)-> iterable[Batch]:
    return list(Batch(engine=self.engine, setting=self.setting, ...))


for batch in self.get_barches(): 
     batch_results = await Batch.perform()
     parsed_result = Parse(batch_result)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions