For those who find this post useful after many trial and error, I managed to extract data from the SimplRequest object as follows:
When you submit your data as follows:
func.delay(data)
from the request object you get the args attribute, which is a list with data:
request.args[0] request.args[1] etc.
If you send your data as follows:
func.apply_async((), {'data': data}, link_error=error_handler.s())
then the data is available as a dictionary in kwargs:
request.kwargs['data']
Finally, as the example shows, we need to loop through all the queries in order to collect the data packet
for r in requests: data = r.kwargs['data']
It would be nice to give examples on the documentation page ( here ) for updating with a simpler and more understandable example.
source share