Web programming, standard way to deal with a response that takes time to complete
Posted
by
wobbily_col
on Programmers
See other posts from Programmers
or by wobbily_col
Published on 2013-10-16T10:16:28Z
Indexed on
2013/10/24
16:09 UTC
Read the original article
Hit count: 190
With normal form submission I use the pattern Post / Redirect / Get, when processing the forms.
I have a database application built with Django. I want to allow the users to select a number of items from the database, then launch a computationally intensive task based on those items.
I expect the task to take between 10 minutes and 2 hours to complete.
Is there a standard approach to dealing with requests like this (i.e. that don't return immediately)? Ideally there would be some way to display the progress.
© Programmers or respective owner