Set download and upload queue size limits

master
Lauri Võsandi 6 months ago
parent 4814030936
commit 5fb3eb4541
  1. 4
      camdetect.py

@ -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(

Loading…
Cancel
Save