Skip to content

Commit

Permalink
Fix faulty parallelization
Browse files Browse the repository at this point in the history
  • Loading branch information
milesmcc committed May 4, 2020
1 parent 0a0f76d commit 77f1fbc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion TEMPLATE.env
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion shynet/shynet/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
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__)))
Expand Down
2 changes: 1 addition & 1 deletion shynet/ssl.webserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion shynet/webserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 77f1fbc

Please sign in to comment.