Compare commits

..

No commits in common. "491d8c4629822401a6b7347eb6c2ba4e50a2e8f0" and "65fc082b1b70a73822cfc2fd984417f56a94ff08" have entirely different histories.

5 changed files with 6 additions and 16 deletions

View file

@ -7,16 +7,14 @@ Type=simple
Restart=always
User=pandora
Group=pandora
EnvironmentFile=/srv/pandora/pandora/encoding.conf
PIDFile=/run/pandora/encoding.pid
WorkingDirectory=/srv/pandora/pandora
ExecStart=/srv/pandora/bin/celery \
-A app worker \
-Q encoding -n pandora-encoding \
--pidfile /run/pandora/encoding.pid \
-c $CONCURRENCY \
--maxtasksperchild $MAX_TASKS_PER_CHILD \
-l $LOGLEVEL
--maxtasksperchild 500 \
-l INFO
ExecReload=/bin/kill -TERM $MAINPID
[Install]

View file

@ -7,16 +7,14 @@ Type=simple
Restart=always
User=pandora
Group=pandora
EnvironmentFile=/srv/pandora/pandora/tasks.conf
PIDFile=/run/pandora/tasks.pid
WorkingDirectory=/srv/pandora/pandora
ExecStart=/srv/pandora/bin/celery \
-A app worker \
-Q default,celery -n pandora-default \
--pidfile /run/pandora/tasks.pid \
-c $CONCURRENCY \
--maxtasksperchild $MAX_TASKS_PER_CHILD \
-l $LOGLEVEL
--maxtasksperchild 1000 \
-l INFO
ExecReload=/bin/kill -TERM $MAINPID
[Install]

View file

@ -59,11 +59,11 @@ def redirect_url(request, url):
if settings.CONFIG['site'].get('sendReferrer', False):
return redirect(url)
else:
return HttpResponse('<script>document.location.href=%s;</script>' % json.dumps(url))
return HttpResponse('<script>document.location.href=%s;</script>'%json.dumps(url))
def opensearch_xml(request):
osd = ET.Element('OpenSearchDescription')
osd.attrib['xmlns'] = "http://a9.com/-/spec/opensearch/1.1/"
osd.attrib['xmlns']="http://a9.com/-/spec/opensearch/1.1/"
e = ET.SubElement(osd, 'ShortName')
e.text = settings.SITENAME
e = ET.SubElement(osd, 'Description')

View file

@ -1,3 +0,0 @@
LOGLEVEL=info
MAX_TASKS_PER_CHILD=500
CONCURRENCY=1

View file

@ -1,3 +0,0 @@
LOGLEVEL=info
MAX_TASKS_PER_CHILD=1000
CONCURRENCY=2