This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.59k
stars
2.8k
forks
source link
Support for Async Generators in TableClient.submit_transaction method #21083
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
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 deletedThe 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
https://github.com/Azure/azure-sdk-for-python/blob/eb5ece7d692a7c460450f65cc30ef6c7fa8b0e64/sdk/tables/azure-data-tables/azure/data/tables/aio/_table_client_async.py#L700