I am not able to do because I don't have the status of the currently running background process in the django code.
Request:
I need to know the status of the celery background task and render the html page from there
@task_success.connect
def task_sent_handler3(sender=None,result=None,**kwargs):
# information about task are located in headers for task messages
# using the task protocol version 2.
#info = headers if 'task' in headers else body
tester()
#print('after_task_publish for task id {info[id]}'.format(info="hhhi",))
I tried the above celery annotation but i did not return anything.
If it return also will i be able to access the local variables and return the render function
render(request,'page.html') from that success decoration function
How can I tackle this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…