AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
143.46k stars 27.01k forks source link

Check for Extension Updates in Parallel #16604

Open Haoming02 opened 4 weeks ago

Haoming02 commented 4 weeks ago

Description

Checklist:


Though, I'm not sure if the shared.state parts should be changed or not...

w-e-w commented 3 weeks ago

somehow I feel like the possibility of requesting hundreds of fetch to github is a bad idea so I made some minor changes mainly rewriting it using ThreadPoolExecutor and setting a deafault limit of 16 and add some Atomic sections such as updating progress bar and Reporting on errors

do you think the number should be higher than 16?

fun fact I about 200 extension installed, (10 enabled, 190 disabled)


there is also the --update-all-extensions cli arg which currently is not concurrent if that is to be made concurrent I'm not sure using a setting value is a good idea