Alleviates translation errors resulting from too many requests being sent to the translation service url.
Adds optional arguments max_workers and max_retries that are passed to the FuturesSession objects performing the translation requests. Both can be controlled in defaultconfig.py via the variable TRANSLATION_SESSION_OPTIONS.
max_workers defaults to 8 (FuturesSession default, moved to requests_futures.DEFAULT_MAX_WORKERS) if not set.
max_retries defaults to requests.adapter.DEFAULT_RETRIES, which should be 0.
Current proposed default is 4 for both, which is set in defaultconfig.py by this PR.
Alleviates translation errors resulting from too many requests being sent to the translation service url.
Adds optional arguments
max_workers
andmax_retries
that are passed to the FuturesSession objects performing the translation requests. Both can be controlled indefaultconfig.py
via the variableTRANSLATION_SESSION_OPTIONS
.max_workers
defaults to 8 (FuturesSession default, moved torequests_futures.DEFAULT_MAX_WORKERS
) if not set.max_retries
defaults torequests.adapter.DEFAULT_RETRIES
, which should be 0.Current proposed default is 4 for both, which is set in
defaultconfig.py
by this PR.