1
0
forked from 0ad/0ad

Speed up fetching of translations from Transifex

This increases the number of workers to use when fetching translations
from Transifex from 5 (the default) to 12. While the Transifex CLI
allows up to 20 workers, using more workers results in frequent request
throttling, which hurts performance more than it improves it.
This commit is contained in:
Dunedan 2024-09-09 09:19:14 +02:00
parent ccb1d747f0
commit 04aa01a39b
Signed by untrusted user: Dunedan
GPG Key ID: 885B16854284E0B2

View File

@ -32,7 +32,7 @@ def main():
path = os.path.join(root, folder)
os.chdir(path)
print(f"INFO: Starting to pull translations in {path}...")
subprocess.run(["tx", "pull", "-a", "-f"], check=False)
subprocess.run(["tx", "pull", "--all", "--force", "--workers=12"], check=False)
if __name__ == "__main__":