I currently have a React App that is using Axios to post data to a Python backend. The jobs are heavy and could take anywhere from 30 seconds to 5 minutes.
Currently, the application sits there loading until the job is done. If you navigate away from the page, while the backend process finishes, the frontend process no longer catches the response due to leaving the page.
I'd like to set it up so that the job continues to run, the user can navigate away from the page and do other things on the app. Then, when the job is complete, it updates the state (which prompts a notification to appear that the file is ready).
Does anyone know how to do this? Can maybe point me in the direction of some documentation that goes over this type of functionality?
Appreciate the help!