adlfs
adlfs copied to clipboard
Limit concurrency
Picking up of #288
Thanks for picking this up!
One thing I've learned about since starting this PR, azure-storage-blob already uses the max_concurrency
keyword for something that's slightly different. The BlobClient.upload_blob
and BlobClient.download_blob
use max_concurrency
to control the number of threads / concurrent tasks to run. It's similar, but slightly difference since it controls concurrency / parallelism on a single blob operation. This PR was targeting operations on many blobs.
We might want to consider a different keyword (max_clients? max_blob_clients?) so that we can pass through max_concurrency
for parallelism on single-blob operations.
Hey @TomAugspurger -- That sounds like a great idea.
Unit tests were passing in my local.