Monday, October 9, 2017

Re: django project avoid reload page where work algorithm



On Oct 8, 2017 11:25 AM, "Xristos Xristoou" <saxri89@gmail.com> wrote:




In the background celery worker picks your task and executes it. It doesn't matter how long that takes. Once task is completed worker waits for next task.

Every task gets id which you can return to frontend and then for example using ajax call you could query if task is ready and inform user about progress or completition.


can you show some example with my code ?is easy to bulid ? 


It is not necessarily trivial to implement Celery or any sort of batch processor. It requires a separate server demon that may not be supported on your hosting platform. I'd suggest combing through the docs for Celery and the specific Django documentation for it, which includes many examples.


-James

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciVC_hQtE3AAp%2Bps%3D0hfyEGFBxWiND1u_m9N1Dve1aBXjQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment