I'd like to start a long running task on the Backend instance. This backend task will be started by the front code via a HTTP request.
What troubles me is that front end instances have a request duration limit of 30s (or is it 60s now?). During that request, the front end will call the backend to start the long running task (which can take more than 3 hours to generate a file at the end). However since this task is long running and front end is waiting for it to finish and will timeout.
The question is how to make a HTTP request from front end to start the long-running backend task, so that the front end will not get a timeout and backend will continue running?
And is there a way so that the task continue running even after the front has disconnected ? (I'm thinking about using Celery in this case)
P.S: I'm using React / Flask stack