Private
Public Access
1
0

fixed RQ issue - bg tasks now working on linux notebook

This commit is contained in:
Sander Roosendaal
2019-02-17 14:30:29 +01:00
parent 158a1e7956
commit f70b1a7ce5
6 changed files with 124 additions and 6 deletions

View File

@@ -298,11 +298,14 @@ def myqueue(queue,function,*args,**kwargs):
if settings.TESTING:
return MockJob()
if settings.DEBUG:
if settings.CELERY:
kwargs['debug'] = True
job = function.delay(*args,**kwargs)
else:
if settings.DEBUG:
kwargs['debug'] = True
job_id = str(uuid.uuid4())
kwargs['job_id'] = job_id
kwargs['jobkey'] = job_id