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:
parent
ccb1d747f0
commit
04aa01a39b
@ -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__":
|
||||
|
Loading…
Reference in New Issue
Block a user