Compare commits

...

2 Commits

Author SHA1 Message Date
Konstantin Pastbin
dd102d1e74 [generator] Fix GENARGS in docker_maps_generator.sh
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2025-12-03 21:31:39 +07:00
Konstantin Pastbin
17a6c34e7f [generator] Make Taiwan_North use 5 threads for Index stage
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2025-12-03 20:44:03 +07:00
2 changed files with 5 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ def multithread_run_if_one_country(func):
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':
kwargs.update({"threads_count": 6})
kwargs.update({"threads_count": 5})
elif country == 'Taiwan_South':
kwargs.update({"threads_count": 2})
func(env, country, **kwargs)

View File

@@ -31,22 +31,22 @@ python3 -m venv /tmp/venv
echo "<$(date +%T)> Copying map generator INI..."
cp var/etc/map_generator.ini.prod var/etc/map_generator.ini
$GENARGS=""
GENARGS=""
if [ $MWMTEST -gt 0 ]; then
echo "Marking as a test (non-prod) generation"
# TODO: output test maps into e.g. osm-maps-test/ and use a different generation.log
$GENARGS="$GENARGS -s=test"
GENARGS="$GENARGS -s=test"
fi
if [ $MWMCONTINUE -gt 0 ]; then
echo "Continuing from preexisting generator run"
$GENARGS="$GENARGS --continue"
GENARGS="$GENARGS --continue"
fi
if [[ -n $MWMCOUNTRIES ]]; then
echo "Generating only specific maps for [$MWMCOUNTRIES]"
$GENARGS="$GENARGS --countries=$MWMCOUNTRIES"
GENARGS="$GENARGS --countries=$MWMCOUNTRIES"
fi
cd ~/comaps/tools/python