Fix faulty parallelization

This commit is contained in:
R. Miles McCain 2020-05-04 14:20:34 -04:00
parent 0a0f76d84e
commit 77f1fbc2cc
No known key found for this signature in database
GPG Key ID: 24F9B6A2588C5408
4 changed files with 6 additions and 4 deletions

View File

@ -57,8 +57,10 @@ SHYNET_HOST=shynet.example.com
# What you'd like to call your Shynet instance.
SHYNET_WHITELABEL=My Shynet Instance
# Redis and queue settings; not necessary for single-instance deployments.
# Redis, queue, and parellization settings; not necessary for single-instance deployments.
# Don't uncomment these unless you know what you are doing!
# NUM_WORKERS=1
# Make sure you set a REDIS_CACHE_LOCATION if you have more than one frontend worker/instance.
# REDIS_CACHE_LOCATION=redis://redis.default.svc.cluster.local/0
# If CELERY_BROKER_URL is set, make sure CELERY_TASK_ALWAYS_EAGER is False and
# that you have a separate queue consumer running somewhere via `celeryworker.sh`.

View File

@ -14,7 +14,7 @@ import os
from django.contrib.messages import constants as messages
# Increment on new releases
VERSION = "v0.3.1"
VERSION = "v0.3.2"
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

View File

@ -4,7 +4,7 @@
echo Launching Shynet web server...
exec gunicorn shynet.wsgi:application \
--bind 0.0.0.0:8080 \
--workers 3 \
--workers ${NUM_WORKERS:-1} \
--timeout 100 \
--certfile=cert.pem \
--keyfile=privkey.pem

View File

@ -3,5 +3,5 @@
echo Launching Shynet web server...
exec gunicorn shynet.wsgi:application \
--bind 0.0.0.0:8080 \
--workers 3 \
--workers ${NUM_WORKERS:-1} \
--timeout 100