Fixing celery content serialization, fixing #19

This commit is contained in:
Kumi 2019-02-24 11:50:57 +00:00
parent 9911f63ed1
commit 9a6279d080
2 changed files with 2 additions and 1 deletions

View file

@ -312,7 +312,7 @@ def getconfig(request, 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)
sigUpdateDevice(device.serial, None, False)

View file

@ -148,3 +148,4 @@ CRON_CLASSES = [
CELERY_RESULT_BACKEND = 'django-db'
CELERY_WORKER_CONCURRENCY = 1
CELERY_WORKER_PREFETCH_MULTIPLIER = 1
CELERY_ACCEPT_CONTENT = ['json', 'pickle']