Fixing celery content serialization, fixing #19
This commit is contained in:
parent
9911f63ed1
commit
9a6279d080
2 changed files with 2 additions and 1 deletions
|
@ -312,7 +312,7 @@ def getconfig(request, device_id):
|
||||||
|
|
||||||
device = get_object_or_404(Device, id=device_id)
|
device = get_object_or_404(Device, id=device_id)
|
||||||
|
|
||||||
if not mkfirmware.delay(device, FWDIR).get(timeout=300):
|
if not mkfirmware.apply_async((device, FWDIR), serializer='pickle').get(timeout=300):
|
||||||
return HttpResponse(status=503)
|
return HttpResponse(status=503)
|
||||||
|
|
||||||
sigUpdateDevice(device.serial, None, False)
|
sigUpdateDevice(device.serial, None, False)
|
||||||
|
|
|
@ -148,3 +148,4 @@ CRON_CLASSES = [
|
||||||
CELERY_RESULT_BACKEND = 'django-db'
|
CELERY_RESULT_BACKEND = 'django-db'
|
||||||
CELERY_WORKER_CONCURRENCY = 1
|
CELERY_WORKER_CONCURRENCY = 1
|
||||||
CELERY_WORKER_PREFETCH_MULTIPLIER = 1
|
CELERY_WORKER_PREFETCH_MULTIPLIER = 1
|
||||||
|
CELERY_ACCEPT_CONTENT = ['json', 'pickle']
|
||||||
|
|
Loading…
Reference in a new issue