Answer the question
In order to leave comments, you need to log in
How can I pass the execution of a task in the background using celery?
Can't seem to set up celery in a django project. I use redis as a broker. I created a task, and in the view I call it as follows in processing the POST request:
taskid = task_process.apply_async(args=[param])
As a result of execution, the task_process method is not executed in the background, the request waits until the method is executed. In this case, the taskid is returned, but does not go to the task queue. As if the function was launched not with celery, but simply. What could be causing this behavior? Has anyone come across?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question