you can with celery, just make a view that checks the task ID of the task and if its PENDING, return 'waiting', which would be used by your browser.
-- also consider the fact that servers will require you to specifically override the connection timeout setting. with finite numbers of connections the server has, imagine if 100 users hit your server for tasks and have to wait 15 minutes. your original method won't scale at all beyond a handful of users.
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/a087bbd2-bde4-4740-838a-e7d870dcf6e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment