I have a task in tasks.py like so:
@app.task
def location(request):
....
I am trying to pass the request object directly from a few to task like so:
def tag_location(request):
tasks.location.delay(request)
return JsonResponse({'response': 1})
I am getting an error that it can't be serialized i guess? How do I fix this? trouble is I have file upload objects as well .. its not all simple data types.
pickleis the only option available. It's worth mentioning that it is also considered dangerous because of its security flaws. - Phani Rithvij