Преглед изворни кода

Reduce parallelism while debugging postgres related stuff

jherve пре 1 година
родитељ
комит
4c24edf277
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/de_quoi_parle_le_monde/snapshots.py

+ 2 - 2
src/de_quoi_parle_le_monde/snapshots.py

@@ -213,10 +213,10 @@ async def main():
 
 
     async with InternetArchiveClient.create() as ia:
     async with InternetArchiveClient.create() as ia:
         workers = {
         workers = {
-            SearchWorker(queue, storage, ia): 3,
+            SearchWorker(queue, storage, ia): 1,
             FetchWorker(queue, ia): 3,
             FetchWorker(queue, ia): 3,
             ParseWorker(queue): 3,
             ParseWorker(queue): 3,
-            StoreWorker(queue, storage): 3,
+            StoreWorker(queue, storage): 1,
         }
         }
 
 
         async with asyncio.TaskGroup() as tg:
         async with asyncio.TaskGroup() as tg: