@@ -104,8 +104,8 @@ async def update_all_users_in_database(
104
104
await gather_with_limited_concurrency (
105
105
[
106
106
# CN site has a strong rate limit
107
- gather_with_limited_concurrency (cn_tasks , 4 ),
108
- gather_with_limited_concurrency (us_tasks , 25 ),
107
+ gather_with_limited_concurrency (cn_tasks , 1 ),
108
+ gather_with_limited_concurrency (us_tasks , 5 ),
109
109
],
110
110
30 ,
111
111
)
@@ -163,6 +163,7 @@ async def save_users_of_contest(
163
163
]
164
164
cursor = col .aggregate (pipeline )
165
165
docs = await cursor .to_list (length = None )
166
+ logger .info (f"docs length = { len (docs )} " )
166
167
cn_tasks = []
167
168
us_tasks = []
168
169
for doc in docs :
@@ -181,8 +182,8 @@ async def save_users_of_contest(
181
182
await gather_with_limited_concurrency (
182
183
[
183
184
# CN site has a strong rate limit
184
- gather_with_limited_concurrency (cn_tasks , 4 ),
185
- gather_with_limited_concurrency (us_tasks , 25 ),
186
- 30 ,
185
+ gather_with_limited_concurrency (cn_tasks , 1 ),
186
+ gather_with_limited_concurrency (us_tasks , 5 ),
187
187
],
188
+ 30 ,
188
189
)
0 commit comments