[generator] Use more threads to Index Taiwan_*

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-11-14 15:45:59 +07:00
committed by Konstantin Pastbin
parent 0814b574a9
commit 2d275d9148

View File

@@ -36,8 +36,11 @@ def multithread_run_if_one_country(func):
def wrap(env, country, **kwargs): def wrap(env, country, **kwargs):
if len(env.countries) == 1: if len(env.countries) == 1:
kwargs.update({"threads_count": settings.THREADS_COUNT}) kwargs.update({"threads_count": settings.THREADS_COUNT})
# Otherwise index stage of Taiwan_* mwms continues to run after all other mwms have finished:
elif country == 'Taiwan_North': elif country == 'Taiwan_North':
kwargs.update({"threads_count": 4}) kwargs.update({"threads_count": 6})
elif country == 'Taiwan_South':
kwargs.update({"threads_count": 2})
func(env, country, **kwargs) func(env, country, **kwargs)
return wrap return wrap