putting more threads in, if a DB exec is slow, the whole things stops -- might have DB contention between viewing and importing?

This commit is contained in:
2021-06-19 17:15:50 +10:00
parent f0fcd098e4
commit 66455b9f43

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
su mythtv -g mythtv -c "python3 /code/pa_job_manager.py" & su mythtv -g mythtv -c "python3 /code/pa_job_manager.py" &
gunicorn --bind=0.0.0.0:443 --workers=2 --threads=2 --certfile /etc/letsencrypt/live/pa.depaoli.id.au/fullchain.pem --keyfile /etc/letsencrypt/live/pa.depaoli.id.au/privkey.pem main:app gunicorn --bind=0.0.0.0:443 --workers=8 --threads=8 --certfile /etc/letsencrypt/live/pa.depaoli.id.au/fullchain.pem --keyfile /etc/letsencrypt/live/pa.depaoli.id.au/privkey.pem main:app