Answer the question
In order to leave comments, you need to log in
Django + Celery function call without saving result?
There is a small project, I use Django 1.10.2, I installed Celery 3.1.24, rabbitmq 3.5.7-1
There is a view, you need to asynchronously generate a file on request and send it to the client, I call the task from the view result = send_xlsx.delay().result
. but I don’t need to store the result, is it possible to somehow call a function using Celery and make the function immediately return the result either to the client or to the calling view after processing, and that has already returned the response to the client?
Answer the question
In order to leave comments, you need to log in
And what's the point then in Celery, if the view has to wait for it? If you want the result of a function, be kind enough to tell me where to put the results.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question