Reduce detail concurrency for two-core VPS

This commit is contained in:
2569718930@qq.com
2026-06-13 02:11:34 +08:00
parent f0b1b57ae2
commit be1d93fc09
5 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -987,9 +987,9 @@ async def _build_city_detail_batch_item_async(
def _city_detail_batch_concurrency() -> int:
try:
value = int(os.getenv("POLYWEATHER_CITY_DETAIL_BATCH_CONCURRENCY", "2") or "2")
value = int(os.getenv("POLYWEATHER_CITY_DETAIL_BATCH_CONCURRENCY", "1") or "1")
except ValueError:
value = 2
value = 1
return max(1, min(4, value))