long time flask app running

Hi I had create had flask application which uses instaloader library and it take around 30 min to extract instagram user info and display on web page. It is working fine on local host but live web on pythonanywhere it is showing error that It taking too much time respond. Is there any time limit for which request can run???

After 5 minutes, our server assumes that your web app has crashed and restarts it to help it recover. In general, no user is going to sit for even a minute waiting for a page to load, so we think that's reasonable. If there are long running tasks that you need to run, you can use a scheduled task or an always on task.