Fix faulty parallelization
This commit is contained in:
		
							parent
							
								
									0a0f76d84e
								
							
						
					
					
						commit
						77f1fbc2cc
					
				@ -57,8 +57,10 @@ SHYNET_HOST=shynet.example.com
 | 
				
			|||||||
# What you'd like to call your Shynet instance.
 | 
					# What you'd like to call your Shynet instance.
 | 
				
			||||||
SHYNET_WHITELABEL=My 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!
 | 
					# 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 
 | 
					# 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
 | 
					# 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`.
 | 
					# that you have a separate queue consumer running somewhere via `celeryworker.sh`.
 | 
				
			||||||
 | 
				
			|||||||
@ -14,7 +14,7 @@ import os
 | 
				
			|||||||
from django.contrib.messages import constants as messages
 | 
					from django.contrib.messages import constants as messages
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Increment on new releases
 | 
					# Increment on new releases
 | 
				
			||||||
VERSION = "v0.3.1"
 | 
					VERSION = "v0.3.2"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
 | 
					# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
 | 
				
			||||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 | 
					BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 | 
				
			||||||
 | 
				
			|||||||
@ -4,7 +4,7 @@
 | 
				
			|||||||
echo Launching Shynet web server...
 | 
					echo Launching Shynet web server...
 | 
				
			||||||
exec gunicorn shynet.wsgi:application \
 | 
					exec gunicorn shynet.wsgi:application \
 | 
				
			||||||
    --bind 0.0.0.0:8080 \
 | 
					    --bind 0.0.0.0:8080 \
 | 
				
			||||||
    --workers 3 \
 | 
					    --workers ${NUM_WORKERS:-1} \
 | 
				
			||||||
    --timeout 100 \
 | 
					    --timeout 100 \
 | 
				
			||||||
    --certfile=cert.pem \
 | 
					    --certfile=cert.pem \
 | 
				
			||||||
    --keyfile=privkey.pem
 | 
					    --keyfile=privkey.pem
 | 
				
			||||||
@ -3,5 +3,5 @@
 | 
				
			|||||||
echo Launching Shynet web server...
 | 
					echo Launching Shynet web server...
 | 
				
			||||||
exec gunicorn shynet.wsgi:application \
 | 
					exec gunicorn shynet.wsgi:application \
 | 
				
			||||||
    --bind 0.0.0.0:8080 \
 | 
					    --bind 0.0.0.0:8080 \
 | 
				
			||||||
    --workers 3 \
 | 
					    --workers ${NUM_WORKERS:-1} \
 | 
				
			||||||
    --timeout 100
 | 
					    --timeout 100
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user