We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ebcf2c commit 984139cCopy full SHA for 984139c
schemas/validate.py
@@ -2,7 +2,7 @@
2
import os
3
import urllib.request
4
from jsonschema import validate as json_validate
5
-from multiprocessing.pool import Pool
+from multiprocessing.dummy import Pool as ThreadPool
6
7
8
GENERIC_EA_SCHEMA = 'generic-ea-schema.json'
@@ -46,7 +46,7 @@ def validate_builds(builds):
46
47
48
def check_urls_exist(download_base_url, files):
49
- with Pool() as pool:
+ with ThreadPool() as pool:
50
download_urls = [f'{download_base_url}{file["filename"]}{extension}' for extension in ['', '.sha256'] for file in files]
51
pool.map(check_url_exists, download_urls)
52
0 commit comments