L
L
ldmitriy2019-11-07 21:32:24
Flask
ldmitriy, 2019-11-07 21:32:24

Why does a flask application crash when a script runs for a long time?

Where can I remove the restriction so that the script can run for more than 1 minute?
At the moment, just flask application crashes

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2019-11-07
@dimonchik2013

this is not PHP))) there are no restrictions in Python, there
are Exceptions

R
redrapper, 2019-11-07
@redrapper

for me this is a bad option, it is better to work with such things asynchronously. Well, if you can’t, but you really want or need it, you can. In this case, set a timestamp and check it at each stage of the iteration, and if it becomes 60 more or equal to apply import sys
sys.exit () well, in addition, the work will be completed, the program will close the script and you will need to run it again (( (

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question