IonicaBizau / repository-downloader

:open_file_folder: Downloads all your repositories from BitBucket and GitHub locally
MIT License
94 stars 31 forks source link

Add option for max simultaneous downloads #22

Closed ineffyble closed 3 years ago

ineffyble commented 7 years ago

My laptop is currently unhappy from trying to clone several hundred large repos at once. It would be good if there was a way to specify number of threads/downloads at a time (and maybe some kind of sensible default?)

Happy to provide a patch if you can tell me what your preferred approach is.

IonicaBizau commented 7 years ago

Thank you for this issue, @ineffyble!

Currently this is impossible due to this parallel call.

But it's not complicated to fix it. We can use same-time-limit to run these functions and later to take the limit from an environment variable or something like that.

Would you like to contribute? :four_leaf_clover: