How to make asynchronous ajax requests if the server side work takes plenty of time to finish?

2018-03-30 Thread Chasan KIOUTSOUKMOUSTAFA
I need advice or sample code to achieve a task related asynchronous ajax request that server side work takes plenty of time to finish its job. Here is the sample scenario; I've a simple CSV file upload form. User submits file - Server starts processing CSV file. - Server makes queries

Re: How to make asynchronous ajax requests if the server side work takes plenty of time to finish?

2018-03-30 Thread m1chael
I think a typical approach would be, using Django celery to process your heavy workload in the background, and then when finished, notify the user via email, text, or maybe have a periodic async ajax call check to see if there are completed tasks not yet looked at On Fri, Mar 30, 2018 at 12:53 AM,