Set download and upload queue size limits
continuous-integration/drone Build is passing Details

This commit is contained in:
Lauri Võsandi 2022-07-28 23:41:26 +03:00
parent 4814030936
commit 5fb3eb4541
1 changed files with 2 additions and 2 deletions

View File

@ -537,8 +537,8 @@ async def setup_db(app, loop):
signal.signal(signal.SIGUSR1, handler)
# Set up processing pipeline
download_queue = asyncio.Queue()
upload_queue = asyncio.Queue()
download_queue = asyncio.Queue(200)
upload_queue = asyncio.Queue(200)
asyncio.create_task(uploader(
upload_queue))
asyncio.create_task(downloader(