handle_makeplot in high queue
This commit is contained in:
@@ -28,7 +28,7 @@ from verbalexpressions import VerEx
|
|||||||
import django_rq
|
import django_rq
|
||||||
queue = django_rq.get_queue('default')
|
queue = django_rq.get_queue('default')
|
||||||
queuelow = django_rq.get_queue('low')
|
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
|
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
|
plotnr = plotnr+3
|
||||||
|
|
||||||
|
|
||||||
job = myqueue(queue,handle_makeplot,f1,f2,
|
job = myqueue(queuehigh,handle_makeplot,f1,f2,
|
||||||
title,hrpwrdata,
|
title,hrpwrdata,
|
||||||
plotnr,imagename)
|
plotnr,imagename)
|
||||||
|
|
||||||
|
|||||||
@@ -303,6 +303,13 @@ RQ_QUEUES = {
|
|||||||
'HOST': 'localhost',
|
'HOST': 'localhost',
|
||||||
'PORT': 6379,
|
'PORT': 6379,
|
||||||
'DB': 0,
|
'DB': 0,
|
||||||
|
# 'PASSWORD': 'some-password',
|
||||||
|
'DEFAULT_TIMEOUT': 360,
|
||||||
|
},
|
||||||
|
'high': {
|
||||||
|
'HOST': 'localhost',
|
||||||
|
'PORT': 6379,
|
||||||
|
'DB': 0,
|
||||||
# 'PASSWORD': 'some-password',
|
# 'PASSWORD': 'some-password',
|
||||||
'DEFAULT_TIMEOUT': 360,
|
'DEFAULT_TIMEOUT': 360,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user