Private
Public Access
1
0

handle_makeplot in high queue

This commit is contained in:
Sander Roosendaal
2019-03-11 20:35:25 +01:00
parent 9e06059126
commit 10391cb632
2 changed files with 9 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ from verbalexpressions import VerEx
import django_rq
queue = django_rq.get_queue('default')
queuelow = django_rq.get_queue('low')
queuehigh = django_rq.get_queue('low')
queuehigh = django_rq.get_queue('high')
from rowers.mytypes import workouttypes,boattypes,otwtypes,workoutsources
@@ -438,7 +438,7 @@ def make_plot(r,w,f1,f2,plottype,title,imagename='',plotnr=0):
plotnr = plotnr+3
job = myqueue(queue,handle_makeplot,f1,f2,
job = myqueue(queuehigh,handle_makeplot,f1,f2,
title,hrpwrdata,
plotnr,imagename)

View File

@@ -303,6 +303,13 @@ RQ_QUEUES = {
'HOST': 'localhost',
'PORT': 6379,
'DB': 0,
# 'PASSWORD': 'some-password',
'DEFAULT_TIMEOUT': 360,
},
'high': {
'HOST': 'localhost',
'PORT': 6379,
'DB': 0,
# 'PASSWORD': 'some-password',
'DEFAULT_TIMEOUT': 360,
},