Skip to content

Conversation

@josh-fell
Copy link
Contributor

Currently users cannot delete more than 256 blobs in a single WasbHook.delete_file() call per limits of the ContainerClient.delete_blobs() API. This PR introduces batching of these delete requests such that the maximum number of blobs to delete is 256 while users only need to call WasbHook.delete_file() only once (this is also applicable for the WasbDeleteBlobOperator).

Currently users cannot delete more than 256 blobs in a single `WasbHook.delete_file()` call per limits of the [`ContainerClient.delete_blobs()` API](https://learn.microsoft.com/en-us/python/api/azure-storage-blob/azure.storage.blob.containerclient?view=azure-python#azure-storage-blob-containerclient-delete-blobs). This PR introduces batching of these delete requests such that the maximum number of blobs to delete is 256 while users only need to call `WasbHook.delete_file()` only once (this is also applicable for the WasbDeleteBlobOperator).
@josh-fell josh-fell merged commit ce28775 into apache:main Feb 16, 2023
@josh-fell josh-fell deleted the delete-blobs-256 branch February 16, 2023 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants