Set download and upload queue size limits
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Lauri Võsandi 2022-07-28 23:41:26 +03:00
parent 4814030936
commit 5fb3eb4541

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(