I would line to run a function without interrupting the current function as follows
def taskone(request): #processes of task one tasktwo() return render(request,"index.html")
As taskone executes, tasktwo should also start executing. Task one should allow task two to continue executing in the background as it renders the html page.
taskone
tasktwo
Please someone give me an idea on how to go about it.
I would recommend you the django-after-response. This is much easier to set up than celery also less process heavy. Only use celery if you need something complex like scheduling tasks, running multiple queues etc.
2.1m questions
2.1m answers
60 comments
57.0k users