Skip to content

Support for Async Generators in TableClient.submit_transaction method #21083

@yashbhutoria

Description

@yashbhutoria
  • I'm trying to delete a large number of entities from an Azure Table asynchronously

  • I have a method that returns a reference of type AsyncGenerator[Tuple[TransactionOperation, TableEntity], None] representing all the records to be deleted

  • The TableClient.submit_transaction method throws an error TypeError: 'async_generator' object is not iterable

  • The TableClient.submit_transaction method should be updated to handle AsyncIterables
    or

  • A new method should be made available to accept Async iterables

  • This can be done by adding 'async for' alongside the for

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.TablesbugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions